Skip to content

Download Firmware Code for the First Time

Miguel Tomas Silva edited this page Nov 15, 2023 · 31 revisions

Change Language
Last update: 15-11-2023

To do firmware download is required a USB to UART TTL device. There's a purposely designed firmware burner on this repository. This device is able to do firmware download on any MCUs running at 3.0V or 5.0V. Features voltage selection : 3.0V 250mA/500mA or 5.0V 500mA and automatic reset and automatic boot. It can fit an enclosure with dimensions of 35x35x4 mm. Other devices are available and are compatible with the Smart DAQ.

if the reader opts for any of the ones above (or other), make sure the programmer has RTS and DTS lines. Another requirement is the Firmware connector clip. This clip has dimensions of a SOIC 8. One can buy one on AliExpress (below) or elsewhere:


How to connect

This firmware programmer connects via USB-A to any USB port available on a computer. The connector clip is to be connected to the smart DAQ PCB where is available a 8 PIN: 4 on the top and 4 on the bottom of the PCB. A silkscreen marking indicates the 3V3 Pin. See clamp pinout below.

ICSP UART Clamp pinout

TX   RX   GND   5V0   TOP

4     3     2         1

RST   DTR   -   3V3   Bottom

5       6       7       8


See the video below showing a firmware download with the programmer available here on GitHub


Firmware Programmer Serial Drivers

In order for the firmware programmer to be detected on Windows is required installation of the corresponding chip IC driver. For chip ICs based on the CH340x has been tested on:

  • Windows 7/10
  • Mac OSX
    • v10.10.5 (Yosemite)
    • v10.11.6 (El Capitan)
    • v10.13.0 (High Sierra)
    • v10.14.5 (Mojave)
  • Linux
  • Raspbian Stretch (11-13-2018 release) for the Raspberry Pi
  • Raspbian Buster (2019-07-10 release) for the Raspberry Pi
  • Ubuntu v18.04.2, 64-bit

These operating systems have the CDC drivers pre-installed, which means you shouldn't need to install any extra software.

The CH340 is made by WCH. You can find the latest version of their drivers in their English translated website.


Compatible Software Studio

The firmware code available can be opened on the following software studios

  • Arduino Studio
  • Visual Code
  • Platform IO

There are a plethora of tutorials on Google on how to do firmware download for each of the studios above.


Firmware download using a USB to UART TTL Burner


Q&A WhatsApp Group

If you have any Questions join the WhatsApp Group for a quicker response LDAD Lab & Prototyping

There are useful answers on stack Exchange about this topic I recommend reading. One is ESP-WROOM-32 layout USB-UART and ESP32 with FTDI programmer


Fully assembled ready to use Smart DAQ device

Alternatively, and if you do not want to build a PCB by yourself, you can buy here:

Clone this wiki locally