This project displays a counter from 1 to 5 on a single line through the serial connection.
The Arduino sends text through its USB connection, printing “Count: ” followed by the numbers 1 through 5 with spaces between them, all on the same line. After completing the count, it adds a line break, ensuring the next iteration starts on a new line.
A new message is sent every second and can be viewed through Code Kit’s Serial Monitor. The project demonstrates how to control serial output formatting by enabling and disabling the “newline” option.
Parts List
- Arduino board
- USB cable
Assembly Instructions
- Connect your Arduino board to your computer
- Set the serial communication speed to 115200 baud
- Open the Serial Monitor in Code Kit
- Observe the counter displaying “Count: 1 2 3 4 5” followed by a line break, refreshing every second