ATOMIC_BLOCK in avr-libc
Even in microcontrollers, there are various interrupts that can be used, so the execution of the code may be interrupted. This can be managed by using atomic operations.
四零二曜日電子報上線啦!訂閱訂起來
Software Engineer / Taiwanese / Life in Fukuoka
This blog supports RSS feed (all content), you can click RSS icon or setup through third-party service. If there are special styles such as code syntax in the technical article, it is still recommended to browse to the original website for the best experience.
我會把一些不成文的筆記或是最近的生活雜感放在短筆記,如果有興趣的話可以來看看唷!
Even in microcontrollers, there are various interrupts that can be used, so the execution of the code may be interrupted. This can be managed by using atomic operations.
The key point of using AVR for USB is whether the chip itself has built-in USB support. Currently, only ATmega32u4 is still in production, but it may also be difficult to obtain due to semiconductor supply shortages.
In early 2021, Raspberry Pi released the pico microcontroller, which is quite affordable at just over 100 Taiwanese dollars. One interesting feature of it is PIO, which allows the implementation of different communication protocols using specialized assembly language and architecture without consuming the resources of the main processor.
Our goal this time is to bring the whole idea into place, so I purchased a ESP32 development version that already has built-in WiFi and Bluetooth to develop!
This will talk about some mines on Arduino and language unfamiliar and stepped on
Among the networks, the most common one is the TCP protocol. To ensure the accuracy of data transmission, we need a series of mechanisms to ensure that the data is accurate and that both parties can receive messages. You need to do similar things in the hardware.
Create air quality monitoring applications with arduino, esp32, sensors! Although it is air quality, it is only the carbon dioxide concentration and temperature and humidity monitoring. If there is a sensor, it is not too much of a problem.