...
PWM (Pulse Width Modulation) controls speed and frequency constantly. It works by varying ON and OFF -pulses. A simple PWM need an inverter chip, diodes, trimpot, and capacitor to work. Its main use is to control the power that is supplied to electrical devices (mostly motors).
Blinking the LED-light
1.) Download metroGPIO.py
2.) Download tst.py
3.) Download WinSCP
4.) Move the files to Raspberry
Turn off Raspberry Pi
Attach Buffer Board
Attach LEDs and wires to bread board
Turn on Raspberry
Run a python program tst.py as a super user (sudo)
Create a new file "led.py"
Define the blinking frequency into the file.
This is the code you can use to control the robot via internet: HTML.png , HTML2.png
This is the code that links Python code to the internet page: MacrosForHTML.png
This is the remote control code: RemoteControl.png , RemoteControl2.png
This is the code that you can program a track into: Track.png , Track2.png
Info |
---|
Related articles
Content by Label | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|