Arduino: Three powerful but neglected uses
| Wayne Chen
Some people don't realize that this low-cost development board is a very powerful conversion tool. Here are three powerful but often overlooked uses of Arduino:
Digital logic analyzer
Open Source Logic Sniffer (OLS) is a simple software tool that implements the features of a digital logic analyzer. The OLS client is based on the Java language and runs on most operating systems. Due to its simple serial protocol, many open source tools such as Bus Pirate, Logic Pirate and of course Arduino provide basic support for OLS, zero external components (excluding wires) and Andrew Gillham's open source code. You can do this with Arduinl UNO. Program settings and turn it into a digital logic analyzer.
The following is a list of features that are available for everyone based on the ATmega328 Arduino:
- Maximum 4Mhz sampling rate
- 1024 samples
- 6 channels
- Shield trigger
- Proportional adjustable forward/backward recording
- Serve as a series of parametric measurement tools: frequency, period, duty cycle, etc.
It may not have any special highlights, but sometimes it can provide you with enough support, often using Arduino or FPGA to verify the communication protocol and some function code.
For many college students, the price often affects our decision to a large extent. In this example, it means that you need to buy a programming device for the microcontroller system. Maybe you want to permanently integrate this function on the PCB, or just want to see how to program the AVR device "manually", in any case, in my opinion. This amazing realization of Arduino makes me very much like it.
This process is very simple, in fact, this project (sketch) is now integrated into all new versions of the Arduino IDE, as follows:
- Open the IDE and select File -> Example -> Arduino ISP
- Compile and upload the project to the development board
After the above operation is complete, you can use the Pin10, 11, 12 and 13 pins of the Arduino (corresponding to RESET/MOSI/MISO/SCK respectively) to program your AVR device. The only thing left to do is to mark these flags. Add to the makefile or use the avrdude command line:
-p –c avrisp –b 19200
UART (serial port) to USB
I know this seems a bit obvious. The Arduino board integrates the FTDI USART-to-USB chip. For Arduino products that lead to most MCU pins, such as the Arduino UNO R3, you can carefully remove the ATmega DIP chip from the socket. You can use the serial pins (RX and TX) for other functions. I found that I often do this. I like to program the option menu into my microcontroller program. Sometimes a simple interface allows real time. The running system changes the mode or requested data, saving you hours of debugging time. The picture shows a very good example of this programming menu, which is the programming menu of the campus bus tracking system I designed.
If you have such a board, who knows that it will have so many functions like the Swiss Army Knife? I hope that we have encouraged everyone to pick up their Arduino and start exploring new areas of the electronic world.