|
An interesting article in the New York Times caught my eye the other day, suggesting the current ‘Gadget’ bubble may be deflating. Not good news for ‘Start-Ups’. Can Engineers or Professional Makers turn an Inventor’s dream into a successful product?
Source: The Inventor and the Engineer: Hare and the Tortoise
Arduino Store – community and electronics
Arduino Store – Components Tools Books & Manuals Workshops Wearables 3D Print Arduino Merchandising Maker Faire 2014 Gift Ideas Goodies Other Boards Other Shields Other Kits Pending Arduino Genuino AtHeart Certified BOM Parts Hidden Retired Test ecommerce, open source, shop, online shopping
New components and technologies allow near-field-communications (NFC) to be quickly and easily integrated with OS-based applications.
Source: Technology to Deliver On the IoT’s Promise | DigiKey
Using solar cells to meet the power requirements of the latest single board computers such as the Raspberry Pi 3 in embedded applications without screens.
Source: How to Use Solar Cells to Power a Raspberry Pi 3 | DigiKey
The LPWA technology enables way longer battery life at a lower cost. How can LPWA can innovate your city, industry or home? Join Tele2 IoT Challenge & find out!
Source: Join the Tele2 IoT Challenge LPWA – Innovate your business
Starwars VSCP
The Waterfall Swing, an interactive art piece designed by a team of passionate innovators and built by New York-based Dash 7 Design, has entertained crowds across the country and around the world. …
Source: Powering Innovation: The Brains Behind the Waterfall Swing
This article is based on this tutorial from AdaFruit. Read it before you continue. Here is an extended version. It explains how to connect 1-wire sensors to a Raspberry Pi system (Works on other Linux systems also of course).
As explained in the above article there is support for 1-wire in the Linux Kernel. You will get a folder for every each temperature sensor you attach to the system under /sys/bus/w1/devices
The script send_pi_onewire.py will read information from each on the attached sensors and send to a VSCP daemon for further processing. This script originally comes from Adafruit but has been extended and changed, see the original article.
The usage is
./send_pi_onewire.py host user password
The script will use the 1-wire sensor GUID to construct a valid unique VSCP GUID.
Only sensors that has been read correctly will be sent to the VSCP daemon.
The script can of course be added to cron if one for example want to have temperature reported every minute. There are other howto’s on this blog that explains how this is done.
note
A good reading of a sensor gives this data on the filesystem
2a 00 4b 46 ff ff 0f 10 40 : crc=40 YES
2a 00 4b 46 ff ff 0f 10 40 t=20812
May be worth checking that you have this content in the file(s) there before using the script.
If you want to know the GPU temperature of your Raspberry Pi you issue
/opt/vc/bin/vcgencmd measure_temp
and will get a response like
temp=45.5’C
form this command.
We will show a script here that send this temperature to a VSCP daemon so that you can handle, display, diagram, react on the measured value etc
The script to do this is here.
You use it like this
./send_pi_gpu_temp.py 192.168.1.6 admin secret –
First remember to make it executable (chmod a+x send_pi_gpu_temp.py ).
The parameters are.
- IP address to server (192.168.1.9) where VSCP daemon resides.
- User name for TCP/IP connection, obviously you should use anther user than the admin user in most cases.
- Passsword for TCP/IP connection.
- GUID to use for the temperature event. This is an optional parameter and if not given “-” wil be used which is the same as a GUID with all zeros and mans that the event will have the GUID of the interface. It is better to give an explicit GUID but this works for now.
So issuing this and watching it in VSCP Works
now we can add this to a cron script to get the temperature sent to the VSCP daemon every minute.
We add a script send_gpu_temp to /etc/cron.d looking like this
* * * * * root cd /root;./send_pi_gpu_temp.py 192.168.1.6 admin secret 00:00:00:00:00:00:00:00:00:00:00:00:00:01:00:03
Note that a GUID has been assigned here for the sensor. The
00:00:00:00:00:00:00:00:00:00:00:00:xx:xx:xx:xx
can be used for lab usage and I put a id for some hardware in byte 2/3 in this case 00:01 and index in byte 0/1 ( 00:03). We could have used the MAC address or the IP address of the Raspberry Pi as a base for this or a privately assigned GUID series. You can read more about the GUID’s here.
Thats it. You can now alarm yourself when the temperature reach critical levels or just diagram the data or collect it in a database.