Program Resource

Resource libraries for programmers and developers

Show only board / settings you want in Arduino IDE menu

Show only board / settings you want in Arduino IDE menu

Arduino IDE supports huge amount of devices for developing. However, when you install ESP32 and ESP8266 board package, menu list will be horrible. It is annoying when you reselect ESP8266 board and see all Upload Speed, memory size, etc falls back to default. Board information are stored in boards.txt file. You can edit this file to hide items you don’t want to see. Default boards.txt for Arduino is stored under ESP type files are or something similar. File is in text format, and you see line like below. To hide specific board, comment out all line with #, or add line with board id + “.hide = true” option. For …

Easy access web page when using ESP8266/ESP32 as Web Server and Access Point

Easy access web page when using ESP8266/ESP32 as Web Server and Access Point

ESP8266 / ESP32 can be easily used as Web server. Also, ESP device can connect to internet via Wi-Fi, or itself can be used as Access Point. Some usage are, connect to ESP device from Smartphone, open web page, configure setting or control peripheral device. E.g. ESP as smart plug controller, configure on/off scheduling time, or ESP as remote-controlled robot with servo and motor, and control using browser interface. One annoying thing when using ESP as access point / web server is, after connecting to ESP device from Smartphone, I have to open browser and type in IP address in URL and open page. Well, this can be automated using …

Use tiny 64×32 dot OELD display with Arduino / ESP

Use tiny 64×32 dot OELD display with Arduino / ESP

There are many 128×64 or 128×32 monochrome OLED display out, and recently, I’ve seen tiny 64×32 dot OLED display sold. However, library such as Adafruit SSD1306 does not support this resolution at this time. Either find library which support tiny display, or make modification to library. I’ve modifed Adafruit SSD1306 library (version 2.2.0) to use with 64×32 OLED display. Modifications are 2 part in Adafruit_SSD1306.cpp file. Around line 549 and 888, add / modify for 64×32 resolution. Since I simply replaced code near line 888, this library won’t be compatible with other resolution. Simple Hello World sample sketch. Below includes sample sketch with modified library. Also, I’ve modified ESP_Adafruit_SSD1306 library …

Show bitmap image on OLED display with Arduino/ESP board (Tool provided)

Show bitmap image on OLED display with Arduino/ESP board (Tool provided)

I2C connection Monochrome OLED display is very handy to use. Easy wiring and various libraries provided, such as Adafruit GFX, u8glib, u8g2lib. Monochrome bitmap can also be displayed. You need to prepare bitmap image and convert to hex data. There are tools you can download, but I couldn’t find one that is easy to use. So, I’ve created easy-to-use tool to convert bmp file to hex data (for Windows). Built with Visual Studio / C++. Use freely, no support, use at your own risk. Simply create bitmap file with MS paintbrush for example, save as 24bit bmp file. Launch tool, drag and drop bmp file to tool. You get hex …

Stand alone ATMEGA328P-AU blotloader writer

Stand alone ATMEGA328P-AU blotloader writer

ATMEGA328P-AU is small chip used in Arduino Nano, and chip can be purchased and used for own projects. When designing circuit board, I don’t want to waste space for pattern just to burn bootloader, which is usually only used once for most of the time. I use kit sold from aitendo store in Japan to burn bootloader (sorry, not shipped overseas). http://www.aitendo.com/product/15799 This kit comes with socket for ATMEGA328P-AU and circuit board and some parts. After building kit, connect with Arduino with bootloader burn sketch, then place chip on socket and burn bootloader to ATMEGA328P-AU chip. Since original sketch output result to serial port, I added OLED display so it …

Royalty Free Images : Other

Royalty Free Images : Other

Photo taken as hobby. Use freely for commercial use, may modify, do anything. No usage restrictions.

Royalty Free Images : Plant

Royalty Free Images : Plant

Photo taken as hobby. Use freely for commercial use, may modify, do anything. No usage restrictions.

Royalty Free Images : Bird

Royalty Free Images : Bird

Photo taken as hobby. Use freely for commercial use, may modify, do anything. No usage restrictions.