Showing posts with label Serial transmission on Arduino. Show all posts
Showing posts with label Serial transmission on Arduino. Show all posts

Sunday, June 13, 2021

Arduino Simulator examples - "ASCII Table"πŸ’Š

Arduino "ASCII table" on Arduino simulator

 Summary

Arduino "ASCII table" presents the more featured serial printing options by printing on the serial monitor a list of characters and the corresponding ASCII values in decimal, hexadecimal, octal, and binary. For more on ASCII, see asciitable.com and http://en.wikipedia.org/wiki/ASCII

Wokwi Arduino simulator is used here as it is free and easy to use online. 

Tip✅: Always connect a resistor of about 220 ohms in series with the LED. Do not connect them directly to the Arduino Pin.

Wokwi Arduino simulator - ASCII table print


You can do following things with the Arduino Simulator example

  • Print your name in ASCII

Arduino Simulation

In the section below, you can also modify the code and see the results instantly. You can change the code and recompile it by clicking on rerun/Run button. For more help, please visit Discord channel of the Wokwi Arduino Simulator. 

Arduino Simulator examples - "Playing tones on multiple output" 🎼🎷

Arduino "Playing tones on multiple output" on Arduino simulator

 Summary

Arduino "Playing tones on multiple output" Program creates tone on three connected buzzers. They are connected to pin 6, 7, and 8 of the Arduino.

Wokwi Arduino simulator is used here as it is free and easy to use online. 

Wokwi Arduino Simulator - Playing multiple tones on Arduino simulator
Wokwi Arduino Simulator - Playing multiple tones on Arduino simulator

 

You can do following things with the Arduino Simulator example

  • Can you come up with a known tone and play it here?

Arduino Simulation

In the section below, you can also modify the code and see the results instantly. You can change the code and recompile it by clicking on rerun/Run button. For more help, please visit Discord channel of the Wokwi Arduino Simulator. 


Saturday, June 12, 2021

Arduino simulator examples - "StateChangeDetection" πŸ•΅️‍♂️

Arduino "Internal pull up example" on Arduino simulator

 Summary

Arduino "Internal pullup" Program toggle the connected LED when the button is pressed. also, the status of the button is printed on the serial terminal. This example showcases to you how you can use an internal Arduino pull-up to hold the floating input pins to a known state. They are called weak pull-ups. when the button is not pressed, the digital pin will read a logic 1. When the button is pressed, the pull-up cannot influence any more and the voltage read at the digital pin is very close to zero. This will be read as logic 0 by the digital read function.

Use the information in the tips for more clarity. Click on the Run button in the simulator below to see the Arduino simulator in action. 

Wokwi Arduino simulator is used here as it is free and easy to use online. 

Wokwi Arduino Simulator - State Change detection
Wokwi Arduino Simulator - StateChangeDetection

 

Tip✅: The document here has good information of bouncing and debouncing of the mechanical switches. 


Tip✅: Always have a resistor connected in series with the LED to avoid burning the LED or damaging the GPIO pin.

You can do following things with the Arduino Simulator example

  • Only print the button state when there is a change in the state

Arduino Simulation

 In the section below, you can also modify the code and see the results instantly. You can change the code and recompile it by clicking on rerun/Run button. For more help, please visit Discord channel of the Wokwi Arduino Simulator. 

Arduino simulator examples - "Internal Pullup" 🀸‍♂️

Arduino "Internal pull up example" on Arduino simulator

 Summary

Arduino "Internal pullup" Program toggle the connected LED when the button is pressed. also, the status of the button is printed on the serial terminal. This example showcases to you how you can use an internal Arduino pull-up to hold the floating input pins to a known state. They are called weak pull-ups. when the button is not pressed, the digital pin will read a logic 1. When the button is pressed, the pull-up cannot influence any more and the voltage read at the digital pin is very close to zero. This will be read as logic 0 by the digital read function.

Use the information in the tips for more clarity. Click on the Run button in the simulator below to see the Arduino simulator in action. 

Wokwi Arduino simulator is used here as it is free and easy to use online. 

Tip✅: The document here has good information of bouncing and debouncing of the mechanical switches. 


Tip✅: Always have a resistor connected in series with the LED to avoid burning the LED or damaging the GPIO pin. 

wokwi Arduino Simulator - Internal pull-up
wokwi Arduino Simulator - Internal pull-up

You can do following things with the Arduino Simulator example

  • Only print the button state when there is a change in the state

Arduino Simulation

 In the section below, you can also modify the code and see the results instantly. You can change the code and recompile it by clicking on rerun/Run button. For more help, please visit Discord channel of the Wokwi Arduino Simulator. 

Friday, June 11, 2021

Arduino simulator examples - "Serial Transmission of data" πŸ“Ί

Arduino "Serial transmission" on Arduino simulator

 Summary

Arduino "Serial transmission" Program prints the text "Arduino simulator" on the serial terminal in a loop. You can click on Run button in the simulator below to see the Arduino simulator in action. Wokwi Arduino simulator is used here as it is free and easy to use online. 

Wokwi Arduino Simulator - Serial transmission of data
Wokwi Arduino simulator - serial transmission of data example

 

You can do following things with the Arduino Simulator example

  • Print your name along with a counter value which increments for every counter 
  • Can you generate nice patterns using symbols = *, $ and #?
  • Can you again delete "ln" from the "Serial.print" command and see what happens?

Arduino Simulation

 In the section below, you can also modify the code and see the results instantly. You can change the code and recompile it by clicking on rerun/Run button. For more help, please visit Discord channel of the Wokwi Arduino Simulator. 

2

Arduino IR simulator projects - "simple receiver"

Arduino "IR simple receiver" on Arduino simulator - IR remote project  Summary Arduino "simple receiver" is an Arduino p...