Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Arduino programing im looking for help with the programing part here this is in arduino. Assignment: You are asked to create a simple adding machine.

Arduino programingimage text in transcribedim looking for help with the programing part here this is in arduino.

Assignment: You are asked to create a simple adding machine. The machine should be sending a serial communication at 9600 baud rate saying the "The current count is at x" where x is the count value. Every time a user hits the add button the count should increase the count by 10 and every time they hit the subtract button it should decrease by 1. You will need to wire it up so the 2 buttons have a pull down resistor. Make sure that when you hit the button it only adds/subtracts once to the count and doesn't add/subtract multiple times if the button is held down. Physical Set up: 1. Wire 2 buttons to pins 3 (Add) and 4 (Subtract) so when the button is pressed pins 3 or 4 read HIGH 2. Make sure to include pull down resistors Programming Requirements: 1. The program begins by reading "The current count is at O" 2. Every time a button is pressed send over serial the new count. 3. The count only changes once for each press of a button. (using a delay) function will not work if a button is pressed too quickly or for too long and should not be used in this exercise) Assignment: You are asked to create a simple adding machine. The machine should be sending a serial communication at 9600 baud rate saying the "The current count is at x" where x is the count value. Every time a user hits the add button the count should increase the count by 10 and every time they hit the subtract button it should decrease by 1. You will need to wire it up so the 2 buttons have a pull down resistor. Make sure that when you hit the button it only adds/subtracts once to the count and doesn't add/subtract multiple times if the button is held down. Physical Set up: 1. Wire 2 buttons to pins 3 (Add) and 4 (Subtract) so when the button is pressed pins 3 or 4 read HIGH 2. Make sure to include pull down resistors Programming Requirements: 1. The program begins by reading "The current count is at O" 2. Every time a button is pressed send over serial the new count. 3. The count only changes once for each press of a button. (using a delay) function will not work if a button is pressed too quickly or for too long and should not be used in this exercise)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago