![]() We have explained it section by section.Ĭhar alphaValues = Just above 'Port' (in 'Tools'), click 'Board', and if not already selected, choose 'Arduino/Genuino Uno'.īelow is the code required for the project. Make sure the USB A/B cable is connecting the Arduino and your computer too. Then Select the port your Arduino is connected to. ![]() To upload the code to your Arduino, you need to make sure the Arduino IDE is configured correctly. In your 'Arduino' folder (which has various folders and the arduino.exe file), open the 'libraries' folder, and insert the 'Wire' library and 'LiquidCrystal' library. They can be found attached to this instructable. Libraries For this code to work, two libraries need to be installed. Given everything is in place and the connections are solid, you're finished! Then, connect a jumper cable between A0 and the middle pin of the potentiometer. Pin 12 is also set to be +5V in the code, but the voltage sources for the buttons and potentiometer must remain separate so the buttons do not affect its readings. ![]() Lastly, take a potentiometer and connect one end to the negative power rail, and another end to pin 12 using a jumper cable. Then connect 4 jumper cables from pins 2, 3, 4, and 5 to each resistor (preferably in order). Each resistor must have two spaces between them.Ĭonnect a push button to each resistor, and +5V from the positive power rail on the other side of each button. Take 4 1kΩ resistors and connect them between the negative power rail and individual rows on the breadboard. Using male-to-male jumper cables, connect the negative power rail on the breadboard to the GND pin on the Arduino, then connect pin 13 to the positive power rail (pin 13 is set up in the code to be +5V). ![]()
0 Comments
Leave a Reply. |