technology

/technology

technical issues

19 09, 2018

Find ESP32 chip revision

By |2018-09-22T14:13:04+02:00September 19th, 2018|electronics, esp32, espressif|0 Comments

Espressif released two chip revisions so far: Rev 0  and Rev 1 Rev 0 had a number of bugs. Espessif released a workaround for the ECO. To find the revision of an ESP32 chip two options are available: Use the esptool Flash your board with the appropriate code to display revision   Intro Before starting make sure you have installed ESP32 on your machine. If you are on windows follow this tutorial: Steps to install Arduino ESP32 support on Windows Do not forget to check if this issue affects your configuration. Use the esptool Download the esptool depending on your operating system: Linux/Unix/Mac: esptool.py  Windows: To get the board details run the following command: [crayon-5cc18298eba14434261303/] So for example on windows: [crayon-5cc18298eba22764138935/] Chip is ESP32D0WDQ6 (revision 1) indicates chip ID and revision number. The same applies for unix/linux: [crayon-5cc18298eba29480750371/] Flash your board Alternatively you can flash your board using the following [...]

26 05, 2018

SODAQ Autonomo with LoraBee on TTN

By |2018-05-27T01:23:28+02:00May 26th, 2018|Autonomo, electronics, Lora|0 Comments

Linking Autonomo board profile to Arduino IDE (current version of Arduino IDE is 1.8.5) The Autonomo’s board profile is available through the Arduino Boards Manager. In order to install the board files I added the SODAQ board manager URL on File->Preferences->Additional Board Manager URLs http://downloads.sodaq.net/package_sodaq_samd_index.json From the Board Manger (Tools->Board->Board Manger) I installed the SODAQ Boards (SODAQ SAMD boards for the Autonomo). I configured the actual board rig with Autonomo, LoraBee, antenna, grove shield, solar panel and a lipo battery (3.7V, 1200mAh, 1804, KC 503562P). Next, I connected the board rig to my computer and from the boards list I selected the SODAQ Autonomo. For some reason when I requested the Board Info from the Arduino IDE I got BN: SODAQ SARA (!?) My intention is to compile the SODAQ LoraBee example code (here): [crayon-5cc18298ec932907016658/] To do so, a number of libraries needed to be installed first. These were Sodaq_RN2483, Sodaq_BMP085, Sodaq_SHT2x. [...]

14 05, 2018

Use an ESP32 board to send DHT to MQTT and then deep sleep

By |2018-05-15T14:57:25+02:00May 14th, 2018|arduino, esp32, espressif|2 Comments

Here is an example of how I post humidity and temperature values that I collect from a DHT11 sensor. I use an ESP32 (Lolin32) board and I post values to a MQTT open source message broker (Eclipse Mosquitto) that I run alongside openhab on a Rpi3. Finally, I deep sleep the board to save energy. I use the following libraries:  Arduino library for DHT11/DHT22 by Adafruit [>>] Arduino Client for MQTT (PubSubClient) by Nick O'Leary [>>] Arduino core for ESP32 WiFi chip [>>] To install CP210x Driver v10.1.1 for Lolin32 ESP32 there installation issue with Windows 10, build 1803. Check this post: [>>] [crayon-5cc18298ecf88334101862/] I also used MQTTLens plugin for Chrome in order to debug my MQTT broker.

14 05, 2018

Openhab2: How to edit Rrd4j files (*.rrd) using the RRD File Inspector

By |2019-01-25T18:46:12+02:00May 14th, 2018|openhab, technology|0 Comments

Here is a way I found to edit rrd files in order to eliminate spikes, inaccurate measurements and other artifacts on my persistence. To start with, openhab2 has to be stopped: $ sudo systemctl stop openhab2 Next navigate to your persistence storage folder and locate the rrd files that I wanted to edit. I copied them on a temporary folder: $ cd /var/lib/openhab2/persistence/rrd4j (or your samba path: \\servername\openHAB-share\openhab2-userdata\persistence\rrd4j) $ cp -Rpdf Boiler_Temp_Val.rrd /tmp Next was the RRD File Inspector ( ). It is located in the library org.openhab.persistence.rrd4j under the folder /lib/rrd4j-2.1.1.jar On my machine it is located under the /var/lib/openhab2/tmp/mvn/org/openhab/persistence/org.openhab.persistence.rrd4j/1.11.0/ I extracted the contents of the jar file using a zip extractor (I did this from my windows workstation using 7zip): To run the inspector I opened a command line (cmd) and run: java -cp rrd4j-2.1.1.jar org.rrd4j.inspector.RrdInspector From the RRD File Inspector I opened the files I wanted to edit:    I saved files [...]

8 05, 2018

Lolin32 ESP32 installation issue with Windows 10, build 1803

By |2018-05-10T17:13:58+02:00May 8th, 2018|arduino, electronics, esp32, espressif|1 Comment

Today, I tried installing windows drivers for a Lolin32 after the Windows 10 build 1803 update. It appears that there is a problem with the CP210x Driver v10.1.1. When I tried to install the driver that I downloaded from the Silicon Labs official site Windows that states "A service installation section in this INF is invalid." Indeed, INF requirements on new windows build changed once again and therefore many old win drivers will not be compatible. Workaround I found a workaround to force install the driver by changing inf file attributes. I followed these steps: I downloaded the official driver from Silicon Labs, CP210x USB to UART Bridge VCP Drivers  I extracted the files and edited the INF file as follows: Line 118 change from a to b:  ServiceBinary  = %13%\silabser.sys ServiceBinary = %12%\silabser.sys Line 160 change from a to b: Silabser_CopyFiles_FileListSection = 13 ; Driver package's Driver Store directory (%WINDIR%\System32\DriverStore\FileRepository ) [...]

23 04, 2012

Drawdio: A Pencil that Lets You Draw Music

By |2016-01-12T21:08:57+02:00April 23rd, 2012|arduino, electronics, Interaction Design, technology|0 Comments

What is Drawdio? Imagine you could draw musical instruments on normal paper with any pencil (cheap circuit thumb-tacked on) and then play them with your finger. The Drawdio circuit-craft lets you MacGuyver your everyday objects into musical instruments: paintbrushes, macaroni, trees, grandpa, even the kitchen sink... http://youtu.be/PV_w38ldZaE

17 12, 2011

Windows Android: error updating SDK tools revision 16

By |2016-01-12T21:08:57+02:00December 17th, 2011|android, technology|0 Comments

There is a possibility that SDK fails to update. This is a known issue since revision 8: http://code.google.com/p/android/issues/detail?id=11989 Normally, you will be informed by the Android SDK Manager Log: Downloading Android SDK Tools, revision 16 Installing Android SDK Tools, revision 16 [post_tools_install.bat] Updating SDK Manager.exe [post_tools_install.bat]         0 file(s) copied. [post_tools_install.bat] Error: The process cannot access the file because it is being used by another process. [post_tools_install.bat] Updating AVD Manager.exe [post_tools_install.bat]         1 file(s) copied. Installed Android SDK Tools, revision 16  The solution is simple: Ensure that your Explorer is closed and not/or not listing your SDK tools folder. It seems that explorer locks tools. Open a CMD window and go to your SDK tools folder. Run android.bat