In order to get the Edimax USB WLAN Adapter working on Debian / Raspbian, proceed as follows.
(1) Use lsusb to list all USB devices:
$ lsusb
Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
The Edimax USB WLAN Adapter uses the Realtek RTL8188CUS chipset.
(2) To figure out which driver is used and hence which module needs to be loaded, we can use the system message log:
$ dmesg | grep rtl
[ 16.919884] usbcore: registered new interface driver rtl8192cu
Now we know the module name: 8192cu
(3) To load the module during system boot, create the following file with the given content:
$ sudo touch /etc/modprobe.d/8192cu.conf
$ sudo echo "options 8192cu rtw_power_mgnt=0 rtw_enusbss=0" > /etc/modprobe.d/8192cu.conf
(4) Enable the wlan0 device (eth0 will be disabled with this configuration):
#auto eth0
#iface eth0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
wpa-ap-scan 1
wpa-scan-ssid 1
wpa-ssid "your-ssid"
wpa-psk "your-wlan-passphrase"
(5) Reboot your PI
Showing posts with label Raspberry PI. Show all posts
Showing posts with label Raspberry PI. Show all posts
Thursday, November 15, 2018
Raspbian Edimax USB WLAN Adapter
Wednesday, March 30, 2016
Measuring water temperature in food-safe applications with Raspberry PI + PT100 sensor + Tinkerforge PTC Bricklet
I was looking for a temperature sensor (thermometer) that can be used with a Raspberry PI for measuring water temperature in food-safe (lebensmittelecht) applications.
The sensor should satisfy the following requirements:
The problem is, that a PT100 sensor cannot just be connected with a Raspberry PI, because you need an analog-digital converter. Lucky as I am, the company Tinkerforge offers some very nice modules to improve this situation. To connect a PT100 temperature sensor, you can use the Tinkerforge PTC Bricklet which gives you the current temperatur in Celsius as an integer number. Its getting even better: Tinkerforge offers an easy to use API for the "most popular" programming languages - including Python.
To connect the Tinkerforge PTC Bricklet with the Raspberry PI, you also need the Tinkerforge Master Brick, which is capable of connecting up to four Bricklets and has a mini USB connector to connect it with a computer.
The first thing to do, is to install brickd. When brickd is up and running, I recommend to change the following two lines in /etc/brickd.conf:
ipcon.authenticate('topsecret')
Replace 'topsecret' with your authentication password. Before you can make use of the Tinkerforge API, you have to install the bindings for the language that you want to use. In our case, the easiest way to do that, is to download the ZIP file with the Python bindings and copy the directory source/tinkerforge to your prefered location on your harddisc. To be able to import the bindings from a Python script, just copy the Python script to the same location where you copied the tinkerforge directory. After this is all done, you can run the script and it will output all connected devices and their corresponding identifiers.
The sensor should satisfy the following requirements:
- food-safe
- waterproof
- heat resistant until at least 100°C
The problem is, that a PT100 sensor cannot just be connected with a Raspberry PI, because you need an analog-digital converter. Lucky as I am, the company Tinkerforge offers some very nice modules to improve this situation. To connect a PT100 temperature sensor, you can use the Tinkerforge PTC Bricklet which gives you the current temperatur in Celsius as an integer number. Its getting even better: Tinkerforge offers an easy to use API for the "most popular" programming languages - including Python.
To connect the Tinkerforge PTC Bricklet with the Raspberry PI, you also need the Tinkerforge Master Brick, which is capable of connecting up to four Bricklets and has a mini USB connector to connect it with a computer.
The first thing to do, is to install brickd. When brickd is up and running, I recommend to change the following two lines in /etc/brickd.conf:
- listen.address = 127.0.0.1
- authentication.secret = topsecret
ipcon.authenticate('topsecret')
Replace 'topsecret' with your authentication password. Before you can make use of the Tinkerforge API, you have to install the bindings for the language that you want to use. In our case, the easiest way to do that, is to download the ZIP file with the Python bindings and copy the directory source/tinkerforge to your prefered location on your harddisc. To be able to import the bindings from a Python script, just copy the Python script to the same location where you copied the tinkerforge directory. After this is all done, you can run the script and it will output all connected devices and their corresponding identifiers.
Labels:
food-safe,
lebensmittelecht,
Master Brick,
PT100,
PTC Bricklet,
Python,
Raspberry PI,
temperature sensor,
thermometer,
Tinkerforge
Subscribe to:
Posts (Atom)