The system is to be controlled by an Arduino microcontroller. The pumps can be m
ID: 3843088 • Letter: T
Question
The system is to be controlled by an Arduino microcontroller.
The pumps can be mimicked by LEDs*.
Switches can be used to represent the LOW and HIGH transducers.
The program should inspect the input switches at regular intervals and take appropriate action.
*If you chose to use the UnoArduSim then you can use its motor simulators to model the two pumps.
A further enhancement would be to use a potentiometer as a ‘level’ transducer so that, say, 10% travel is ‘low level’ and 90% ‘high level’.
Explanation / Answer
ORG 0000h
loop:
CLR P2.0
CALL DELAY
SETB P2.0
CALL DELAY
JMP loop
const int LED1 = 12;
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.