Categories
Arduino IDE Microcontrollers

Program Debugging

Source: Circuito.io

Categories
ESP32

Setup Arduino IDE for ESP32

URL: “https://dl.espressif.com/dl/package_esp32_index.json” into the “Additional Board Manager URLs” box

In the board manager dialog box, click on the search bar. Then type “ESP32” and hit enter. Now select and click on the install button for “ESP32 by Espressif systems”

Categories
ESP8266 (ESP-01/01S) Microcontrollers

D1 Mini V3.0(Wemos)

D1_MINI_IMG
Source: www.wemos.cc

A mini WiFi board with 4MB flash based on ESP-8266EX.

Technical Spec and Features

  • Clock Speed: 80/160Mhz
  • Operating Voltage: 3.3V
  • Flash: 4M Bytes
  • Digital I/O Pins: 11
  • interrupt/pwm/I2C/
  • Analog Input Pins: 1(Max input: 3.2V)
  • One-wire supported(except D0)
  • Micro USB Connector: 1
  • Compatible with MicroPython, Arduino, nodemcu
  • Size (W * H): 32.2 * 25.6mm
  • Weight: 3g

UART Chip Driver (CH340) for D1 Mini board

MacOSX 10.15 >

For Mac OSX 10.14 and greater, do not install any supplementary drivers. The drivers are now included with OSX. Installing the CH340 will cause a conflict and you will not be able to connect.

Windows Drivers

https://github.com/wemos/ch340_driver

Configure the Arduino IDE for D1 Mini board

  • Start the Arduino IDE
  • From the main menu select Arduino > Preferences…
  • For Additional Board Manager URLs enter in the field on its own line:
https://arduino.esp8266.com/stable/package_esp8266com_index.json

Select your board

  • Select Tools > Board: *
  • Select your board (I selected LOLIN(WEMOS) D1 R2 & Mini)

Pin (all IO pins @3.3v)

PinFunctionESP-8266 Pin
TXTXDTXD
RXRXDRXD
A0Analog input, max 3.2VA0
D0IOGPIO16
D1IO, SCLGPIO5
D2IO, SDAGPIO4
D3IO, 10k Pull-upGPIO0
D4IO, 10k Pull-up, BUILTIN_LEDGPIO2
D5IO, SCKGPIO14
D6IO, MISOGPIO12
D7IO, MOSIGPIO13
D8IO, 10k Pull-down, SSGPIO15
GGroundGND
5V5V
3V33.3V3.3V
RSTResetRST
Wemos D1 mini pinout | Electronics projects diy, Development board, Tutorial
Source: RandomNerdTutorials

Schematic

Source: www.wemos.cc

Resources

https://github.com/wemos

https://www.wemos.cc/en/latest/

Categories
Middleware

Gin Web Framework

Gin is a web framework written in Go (Golang). It features a martini-like API with performance that is up to 40 times faster thanks to httprouter. If you need performance and good productivity, you will love Gin.

https://github.com/gin-gonic/gin

Installing and configuring Gin

https://golang.org/doc/tutorial/web-service-gin