ESP32 vs ESP8266 – Pros and Cons

What’s the difference between ESP32 and ESP8266? Should you use the ESP32 or the ESP8266 in your projects? In this article, we’ll compare the ESP32 with the ESP8266 and cover the pros and cons of each board. The ESP32 and ESP8266 are cheap Wi-Fi modules perfectly suited for DIY projects in the Internet of Things […]

Docker OpenWrt Builder

Docker OpenWrt Builder Build OpenWrt images in a Docker container. This is sometimes necessary when building OpenWrt on the host system fails, e.g. when some dependency is too new. The docker image is based on Debian 10 (Buster). Build tested: OpenWrt-21.02.2 OpenWrt-19.07.8 OpenWrt-18.06.9 A smaller container based on Alpine Linux is available in the alpine branch. But […]

IAR for STM8的簡介、下載、安裝及註冊教程

一、簡介 1.關於IAR for STM8 IAR for STM8 是一個嵌入式工作平台,主要應用於STM8 系列芯片的開發,現在(2018年3.10版本)能夠支持市面上所有的STM8芯片。 個人認為,IAR for STM8和Keil差別並不是很大,只要熟悉Keil的使用,那上手IAR for STM8並不是什麼難事,網絡上也有許多相關資料可以查詢。 2.關於該篇博客 這一篇博客主要來講解一下IAR的下載、安裝、註冊的步驟, 雖然說的是IAR for STM8的教程, 但其實ARM跟其他的下載、安裝步驟類似的。 大家可以從我的百度雲下載IAR for STM8(3.10版本)和註冊機!!! 鏈接:https://pan.baidu.com/s/16UHwCZkgONEeLwiwBawAhg 提取碼:gvj9  二、下載IAR for STM8軟件(以下兩種下載方法均可) 1.從官網下載 網址:https://www.iar.com/iar-embedded-workbench/#!?architecture=STM8 2.百度雲下載 鏈接:https://pan.baidu.com/s/1KU6QKuLZXysiwo9J_b0fPQ 提取碼:3nf0      三、安裝IAR for STM8軟件 軟件安裝就比較簡單了,這裡就沒什麼難的地方~ 只要從一開始的這個界面,一直點“next”、“yes”、“是”……就能順利安裝完成~ 安裝完成後進入軟件界面,如下:      四、軟件註冊 1.打開軟件IAR Embedded Workbench IDE:License Manager ->“取消”->“確定” License Manager:   “取消”:   […]

micropython ESP32 SOLO-1 firmware binary

E (469) cpu_start: Running on single core chip, but application is built with dual core support. E (478) cpu_start: Please enable CONFIG_FREERTOS_UNICORE option in menuconfig. microPython Enable dual core support by default. Single core is still supported, just by adding CONFIG_FREERTOS_UNICORE=y to a custom sdkconfig file. for ESP32 SOLO-1 you may do this. modify file […]

我的第一個STM32程式,使用Arduino IDE 介面

rduino已經用了很長的一段時間,有些與 Arduino 相容開發板的延伸應用,如 NodeMCU、ESP32 等,實作了一些相關的控制。當時覺得 STM32 可能與 Arduino 類似,就沒特別想買一個來練習。這次在看了 STM32 的規格後,覺得比 Arduino 強很多,也可以使用 Arduino IDE 來撰寫 STM32 程式,利用購買一批電子零件的機會,順便買了一片 STM32F103C8T6 開發板,來測試一下這片開發板的功能。 我整理一下 Arduino Uno 的 ATmega328 與 Mega 使用的 ATmega2560 以及 STM32 三個微控制器的比較,可以看到 STM32 的 32bit 處理器及其他規格都比 Arduino Uno 或 Mega 要強很多。一般如果是用在做玩具或啟蒙電子教育功能,Arduino 比較適合,如果是要做成工業或商用產品,那 STM32 會更好。 編號 規格 STM32F103C8 ATMEGA328 ATMEGA2560 1 CPU 32 Bit 8 Bit […]

How to Use a Joystick with Serial Monitor

This project will show you how to use joystick with serial monitor. Operation and uses   The joystick is similar to two potentiometers connected together, one for the vertical movement (Y-axis) and other for the horizontal movement (X-axis).   ( Same operation as an analogic joystick used with arduino card )   The potentiometers are […]

Arduino Nano CNC Shield V4 with grbl PIN ERROR

The CNC Shield V4 came with some factory errors being a cloned version for china, the step puls and step direction pin numbers have been alternated, this article also show how to correct it. Just modify one file. modify cpu_map.h file at line 39 #define X_STEP_BIT 5 // Uno Digital Pin 2 #define Y_STEP_BIT 6 […]

How to Use MQTT With the Raspberry Pi and ESP8266

In this Instructable, I will explain what the MQTT protocol is and how it is used to communicate between devices.Then, as a practical demonstration, I shall show you how to setup a simple two client system, where an ESP8266 module will send a message to a Python program when a button is pushed. Specifically, I […]

IoT based Smart Irrigation System using Soil Moisture Sensor and ESP8266 NodeMCU

IoT based Smart Irrigation System using Soil Moisture Sensor and ESP8266 NodeMCU Most of the farmers use large portions of farming land and it becomes very difficult to reach and track each corner of large lands. Sometime there is a possibility of uneven water sprinkles. This result in the bad quality crops which further leads […]

ADS1115 analog-to-digital converter and ESP8266

The ADS1115 device is a precision, low-power, 16-bit, I2C-compatible, analog-to-digital converters (ADCs) offered in an ultra-small, leadless, X2QFN-10 package, and a VSSOP-10 package. The ADS1115 device incorporates a low-drift voltage reference and an oscillator. The ADS1115 also incorporate a programmable gain amplifier and a digital comparator. These features, along with a wide operating supply range, […]