Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Open "LXTerminal"
  • Write "sudo apt-get update" (without the quotation marks)
  • Write "sudo-apt-get upgrade" (without the quotation marks)
  • Wait until the update is ready (If you have problems while updating you can continue the update with "sudo dpkg --configure -a"-command (without the quotation marks))
  • After updating, start Raspbian over with the command "sudo shutdown -r now" (without the quotation marks)
  • After the reboot the desktop should look normal.

    8. You can upload screenshots with command "sudo apt-get install scrot" (without the quotation marks)
    9. Screenshots van be taken by command "...scrot" (without the quotation marks)
    10. To open python3 with the command "python" (without the quotation marks) you need to give command "alias python=python3" (without the quotation marks)
    11. Make a new folder in to the home directory with following commands: "cd /home" "sudo mkdir "name"" (without the quotation marks, the "name" should be inside quotation marks)
    12. Go to the new folder by command "cd python_files"
    13. Create a new file "sudo nano hello.py" (without the quotation marks)
    14. Add the necessary code to the file and save it.
    15. Try whether the code works by command "python hello.py" (without the quotation marks)


What is PWM?

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. 

HelloWorld!!!.jpg 

Moottoritpyorivat.jpg

BlinkingTheLED.jpg

 This is the code you can use to control the robot via internet: HTML.pngHTML2.png

This is the code that links Python code to the internet page: MacrosForHTML.png

This is the remote control code: RemoteControl.pngRemoteControl2.png

This is the code that you can program a track into: Track.pngTrack2.png 

Info

Content by Label
showLabelsfalse
max5
spaces~kaisaran
sortmodified
showSpacefalse
reversetrue
typepage
labelskb-how-to-article