technical issues

21 05, 2019

How to install an ESP32 board in Arduino IDE

By |2019-05-21T23:20:12+02:00May 21st, 2019|arduino, esp32, espressif|0 Comments

To program the ESP32 using the Arduino IDE we need to install the appropriate libraries. This is a tutorial for installing the ESP32 board in the Arduino IDE for Windows. To start with you need to delete any previous installation using the old method that uses git. 1. Delete the previous custom installation of the espressif drivers and tools If this is your first time installing the ESP32 on Arduino IDE you can ignore this section and jump to part 2. If you’ve followed the older installation procedure and you’ve manually installed the ESP32 add-on with Git GUI, you need to remove the espressif folder from your Arduino IDE.  To find your espressif folder and Arduino IDE location (installation path), open your Arduino IDE and go to File > Preferences: Note: I use the portable version of Arduino IDE and therefore my path is pointing to a relative location of the sketchbook. No full path in [...]

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: esptool --port PORTNUMBER flash_id So for example on windows: PS T:\Documents\code\arduino> .\esptool.exe --port COM25 flash_id esptool.py v2.1 Connecting.... Detecting chip type... ESP32 Chip is ESP32D0WDQ6 (revision 1) Uploading stub... Running stub... Stub running... Manufacturer: ef Device: [...]

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): #include <Sodaq_RN2483.h> #include <Wire.h> #include <Sodaq_BMP085.h> #include <Sodaq_SHT2x.h> ////SETTINGS/// // MBili / Tatu //#define debugSerial Serial //#define beePin [...]

14 05, 2018

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

By |2020-04-15T20:26:00+02:00May 14th, 2018|arduino, esp32, espressif|5 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: [>>] /* Project ESP32, DHT, MQTT and Deepsleep */ #include <WiFi.h> #include <PubSubClient.h> #include "DHT.h" // Library for DHT sensors #define wifi_ssid "My_APs_ssid" //wifi ssid #define wifi_password "my_password" //wifi password #define mqtt_server "mqtt_broker_IP" // server name or IP #define mqtt_user "username" // username #define mqtt_password "password" // password #define temperature_topic [...]

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 ) [...]

28 02, 2013

Google Services Framework FC – Android

By |2016-01-12T21:08:57+02:00February 28th, 2013|android|0 Comments

Force close Report: "The application Google Services Framework (process com.google.process.gapps) has stopped unexpectedly." Please try again. Solution (No wipe is needed): 1. Turn off sync: (Settings--> Accounts & Sync settings --> Auto-sync --> off,) for extra security you can turn off wifi and data connections 2. Go back to main Settings and select: Applications --> Manage applications --> (All Applications) 3. Locate: Contacts Storage 4. Select it and then "Wipe data" & "Clear cache" (cache might be cleared anyway) 5. Go back to the program list and locate: Google Services Framework 6. Do the same: "Wipe data" & "Clear cache" (cache might be cleared anyway) 7. Reboot your device. 8. Do not forget to Enable Sync, and network connection again.

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

Go to Top