This is my make-through for the week's assignment. Grab a cup of coffee!
Let's start the my forth journey.
Journey taken place in my home and Fab Lab.
main goal journey: Design input and output PCP
Story Characters: Eagle, CNC milling machine, and welding machine.
Make-through Checklist
Describe your previous experience with Raspberry Pi: is this your first time using that board? How is it different from Arduino or the AVR microcontroller Family?
Describe which input and action components did you chose for your assignment: is your input analog or digital? Does your action component require an external power source? How did you handle that? How did you wire the components with the Raspberry Pi and which pins did you use?
Describe how you programmed the Raspberry Pi using Python Programming Language: which functions did you use? How are the python commands or functions similar or different from Arduino C syntax?
Describe problems you encountered as they happened throughout the process. How did you solve them?
Make sure to Use screenshot images and videos to document the process
Describe how you programmed the Raspberry Pi using Python Programming Language: which functions did you use? How are the python commands or functions similar or different from Arduino C syntax?
some explanation of main key words use in code (with blue font)
import time// import library of measuring time
import RPi.GPIO as GPIO // import library of control of GPIO in Raspberry pI
GPIO.setmode(GPIO.BOARD)// to activate the all GPIO pins
GPIO.setup( 11 , GPIO.OUT)// Define the pin as input or output
while True: // repeat the line under this sentance to infinity
GPIO.output(11,0) // volt( pin-11)=0
time.sleep(1)// wait one sec
In real, I found the Python language is more easy as Arduino C/C++ , it can be as result of many practice I did in python.
Problem: confused when dealing with the pins of the raspberry pi ( Board and BCM )
Potential Solution: Dealing with Photos pin out of raspberry and try to print the photo to be more easy and don't make mistake.
What I learned this week is...
I learnt to deal with first time with raspberry Pi
Learning the language (python)