Editing
Varying power and pulsing outputs
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
You can also vary the power on the digital outputs and set up pulse sequences as well. A pulsed output could be used to switch a buzzer on and off continuously to act as an alarm. The example in fig. 15 uses the POWER command to slowly increase the brightness of a bulb connected to digital output 0. [[File:Tutorial-fig15.png|frame|none|fig. 15]] Figure 16 shows how a number of outputs can be pulsed independently. For example a buggy could sound a buzzer and flash lights at a different rate to give a warning when it reverses. The normal SWITCH ON command is followed by the pulse period, the first figure shows how many centiseconds the output will be on for, the second number is the off period. The maximum value in either case is 255 centiseconds. [[File:Tutorial-fig16.png|frame|none|fig. 16]] [[Category:Tutorial]]
Summary:
Please note that all contributions to Smart Box may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Smart Box:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
British English
Views
Read
Edit
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information