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

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

7 11, 2011

monome: adaptable, minimalist interfaces + open source

By |2017-12-04T21:42:15+02:00November 7th, 2011|design, electronics, Interaction Design, user experience design (UX)|0 Comments

Monome are a small company based in Philadelphia, who design and build a range of controller/display boxes that can be interfaced to music software. That in itself isn't too remarkable — the market is awash with fader units and mixing surfaces of various shapes and sizes — but Monome units are something different. Read a thorough review here. monome is brian crabtree and kelli cain. They do minimalist interfaces. They are minimalists. http://vimeo.com/8301567 http://vimeo.com/14955241  

18 04, 2011

LEDs & resistors

By |2016-01-12T21:09:35+02:00April 18th, 2011|electronics, technology|2 Comments

  To calculate the resistance when powering a LED use this: R=(Vpow-Vled)/I R: is the needed resistance Vpow: is the voltage of our source or power supply (e.g. battery) Vled: voltage of the LED I: the maximum of current that goes through our LED. for a 2V (diode forward voltage) LED we need 20mA =0.02A (diode forward current) So, for instance, if we have a 12V battery then: R=(12-2)/0,02= 10/0.02=500 Ohm Another example is the use of multiple LEDs in an array. So, for an array of 4 LEDs with diode forward voltage 2V, diode forward current (0.02mA) and a Vpow of 12V we need: 4 x 1 array uses 4 LEDs exactly +12V R = 220000 ohms each 220000 ohm resistor dissipates 0.088 mW the wizard says the color code for 220000 is red red yellow the wizard thinks 1/4W resistors are fine for your application together, all resistors dissipate 0.088 mW [...]

Go to Top