32 bit integer to 4 bytes

Squirrel on Electric Imp #require “JSONEncoder.class.nut:2.0.0” local number = 1523187384; local record = array(4); local result = 0; local byteArray = array(4); local record2 = array(4); local result2 = 0; local byteArray2 = array(4); // method 1 and before shift right record[0] = ((number & 0xff000000) >> 24); record[1] = ((number & 0x00ff0000) >> 16); […]

Raspberry Pi3 error “Failed to connect to non-global ctrl_ifname: (null) error: No such file or directory” after wpa_cli reconfigure

Raspberry Pi 3B v1.2

Trying to get WiFi working on the Raspberry Pi 3 following the instructions found at https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md when I got to start the WiFi using sudo wpa_cli reconfigure It reports an error: Failed to connect to non-global ctrl_ifname: (null)  error: No such file or directory Error messages like this are great as they don’t provide any clue’s, […]

DHT22 (RHT03) Temp Humidity library for chipKIT and Arduino 1.x

Download, unzip and copy the DHT22 folder into your libraries folder eg: for MPIDE: C:\Users\yourname\Documents\mpide\libraries\DHT22 for Arduino IDE: C:\Users\yourname\Documents\Arduino\libraries\DHT22 An example script is included. Been reading a few reports that this sensor is more accurate at the higher voltage (eg 5V) rather than the 3.3V. My observations so far suggest the same. So when using […]

USB in a NutShell

For those wanting to develop with USB, a brilliant resource is USB in a NutShell, My ventures showed while USB is very easy at the user level, it’s far from it at the developer level. Its really a specialty in it’s own right. My first venture into this area was developing a set of rudder […]