Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Due: Friday Feby 9t (11:59PM) INSTRUCTIONS: This assignment will be submitted via Blackboard, include the following as a SINGLE (.DOC) file by the date indicated
Due: Friday Feby 9t (11:59PM) INSTRUCTIONS: This assignment will be submitted via Blackboard, include the following as a SINGLE (.DOC) file by the date indicated above: 1) Include your name, student ID, and the date due at the top of the page, and number the pages of the document starting with the first page 2) Add a complete copy of your code (copy paste) from the simulator or the Arduino IDE [you must directly copy the code to the body of the document, screen shots will not be accepted] If you are having trouble with copying from the IDE you can save and open the sketch as an .INO and open it using Notepad++ or another text editor. (This file is formatted plane text) 3) Answers to any questions asked at the end of the exercise -Don't panic!- We'll discuss several of the topics in class next week and you'll have several chances for questions about this assignment before it's due ASSIGNMENT 1: Generate a single Arduino code sketch*which accomplishes the tasks listed below: *It would be best to test your code using the UnoArdusim, or using the Arduino itself Note: You can simulate pin states using binary or boolean values in place of read commands. 1) Declare, SETUP, and READ the values of TWO pins, one DIGITAL and one ANALOG, at the star of each loopO A) You can select any DIGITAL pin from pin 0 - 12, do not use the built in LED on pin 13 b) You can select any ANALOG pin from A0-A5 Please make sure to regulate the current using a simple resistor (approx. 560 ohm when reading from buttons or constant voltage sources. 2) Create 3 functions which match the following types: A) Simple value dependent decision statement/Reference> Language >Structure > Control structure Compare value, of the ANALOG pin to some value [in range of the ADc (8bit This function should set a DIGITAL pin [any pin other than the pin you've slected to read from] either HIGH or LOW based on the value of your chosen pin at the start of each loop0 This function should also set (assign or change the value of) a GLOBAL variable of type BOOLEAN TRUE or FALSE) B) A switch/case statement// Reference>Language > Structure > Control structure Due: Friday Feby 9t (11:59PM) INSTRUCTIONS: This assignment will be submitted via Blackboard, include the following as a SINGLE (.DOC) file by the date indicated above: 1) Include your name, student ID, and the date due at the top of the page, and number the pages of the document starting with the first page 2) Add a complete copy of your code (copy paste) from the simulator or the Arduino IDE [you must directly copy the code to the body of the document, screen shots will not be accepted] If you are having trouble with copying from the IDE you can save and open the sketch as an .INO and open it using Notepad++ or another text editor. (This file is formatted plane text) 3) Answers to any questions asked at the end of the exercise -Don't panic!- We'll discuss several of the topics in class next week and you'll have several chances for questions about this assignment before it's due ASSIGNMENT 1: Generate a single Arduino code sketch*which accomplishes the tasks listed below: *It would be best to test your code using the UnoArdusim, or using the Arduino itself Note: You can simulate pin states using binary or boolean values in place of read commands. 1) Declare, SETUP, and READ the values of TWO pins, one DIGITAL and one ANALOG, at the star of each loopO A) You can select any DIGITAL pin from pin 0 - 12, do not use the built in LED on pin 13 b) You can select any ANALOG pin from A0-A5 Please make sure to regulate the current using a simple resistor (approx. 560 ohm when reading from buttons or constant voltage sources. 2) Create 3 functions which match the following types: A) Simple value dependent decision statement/Reference> Language >Structure > Control structure Compare value, of the ANALOG pin to some value [in range of the ADc (8bit This function should set a DIGITAL pin [any pin other than the pin you've slected to read from] either HIGH or LOW based on the value of your chosen pin at the start of each loop0 This function should also set (assign or change the value of) a GLOBAL variable of type BOOLEAN TRUE or FALSE) B) A switch/case statement// Reference>Language > Structure > Control structure
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started