Program Resource

Resource libraries for programmers and developers

Network support for Arduino firmware tool avrdude.exe (Windows version)

Network support for Arduino firmware tool avrdude.exe (Windows version)

When writing sketch to Arduino, avrdude is used. Normally, Aruduino IDE is used for writing and avrdude itself is not directly used, but avrdude.exe is used from command line in case of writing hex file to flash or checking fuse setting. USB / Serial connections are usually used, but avrdude does have support for connection over network. Connect ESP8266 or ESP32 with Arduino via ISCP, and write sketch to ESP which relays command from network. Then connect ESP to network, and tell avrdude to connect over network. Command line sample is as follows. IP address and port number are passed with net parameter. However, at this point (Sept, 2021), avrdude.exe …

Using Infrared-Temperature sensor GY-906 MLX90614

Using Infrared-Temperature sensor GY-906 MLX90614

Recently, I bought cheap infrared temperature sensor, GY-906 from aliexpress, only about $5 including shipping fee. Adafruit MLX90614 library can be used for this module. https://github.com/adafruit/Adafruit-MLX90614-Library Communication via I2C and address is 0x5A. I thought using device is simple as other sensor device; but didn’t work as expected, returning fixed value, 1037.55. After searching through forum, found out that changing I2C frequency to 50000 makes this thing work. I can set frequency at Wire.begin if this is only device I’m using, but once I try to use OLED to show readout, OLED works but sensor stops working again. Finally, I was able to make both OLED and sensor to work …

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 …