Posts

Week 9

Image
  Pi Experiment ADC (Analog to Digital Chip) MCP3008 Datasheet for ZK8868 CH0 -7 The 8 channels you wish to measure relative voltage of.  Max??? VDD (Voltage at the drain) Powers the chip 5V Max 7V VREF Voltage of the thing you are measuring 5V Max ???? AGND Analog ground.  The Ground of the circuit you are measuring the voltage of CLK Clock  Syncs the output of the chip with the input of the Pi DOUT Where the digital signal comes out DIN Used to load channel information to the chip. !CS/SHDN Used to turn on and off the chip (Normal convention is to show CS active low with a bar above but I could not get that using my blogging tool and css was going to far so I used the lesser known convention) DGND Used to connect to the digital inputs ground. What comes out of DOUT.  A series of 1's and 0's which represent a number relative to the VRef max. MCP is a 10 bit output (depends on chip) if the CH0 voltage out is 5V and the VREF is 5V then the DOUT will be 1111111111...

Week 8

  Pi Experiment Pi receiving inputs through button pushes Pull up/down resistors How Pi can use pull up/down resistors internally Programming Arrays Lists Next Week ADC chip MCP3008 Potentiometer Leads (As an extra I will have a photoresistor and 10kOhm resistor you do not need them)

Week 7

 Pi Experiment Adafruit Servo experiment How a servo motor works Modify the program to take inputs from the user to turn the servo. Programming Functions How to call How to use arguments How to use output Next Week  1kOhm resistor 10kOhm resistor Push Button switch Leads Alligator to male leads (not essential) 500 Ohm resistor (+ or - 100 Ohm) LED 

Week 6

 Pi Experiment HBridge chip Changing the program to work in auto mode.  Forward and back. Programming Loops, String comparison, inputs from the user. What to bring next Week Adafruit servo motor

Week 5

 All about transistors https://noelpi.blogspot.com/2023/11/controlling-motor-with-transistor.html Programming Operators Conditional statements Next Week Normal stuff (pi, leads, 500 ohm resistor, motor , hbridge  L293D Dual Full Bridge Motor Driver IC )

Week 4

 Making a buzzer sound Discuss max current draws on the Raspberry Pi. V = IR For GPIO pins this means  3.3 = 0.016 R R= 3.3/0.016 R= 206.25 Ohms Therefore the lowest resistance we can have in a output circuit is 206.25 Ohms How to use the debugger to examine buzzer code. Using the "time" calls and turning the output pin on and off make the buzzer sound The buzzer sound is too low just using the GPIO pin so we need one of two things A transistor to amplify the signal from the GPIO pin without increasing the current draw on the GPIO pin A passive buzzer board that has a power and signal input. Extension activity making the buzzer sound using PWM What are the limits of changing the frequency.  Possible reasons why. Programming today Finish of variables from last week. Looping For, While Add up numbers 1-100 Using for loop Functions (intro)  Scope of blocks (counter inside function) use of the global keyword. Homework Using a while loop add Fibonacci numbers and output...

Week 3

  LED on off Extension Exercises. Change the ledonoff.py program to make the LED stay on for 3 seconds and off for 1 sec and for this cycle to repeat. Get the LED to display an SOS message repeatedly. There are rules to help people distinguish dots from dashes in Morse code. The length of a dot is 1 time unit. A dash is 3 time units. The space between symbols (dots and dashes) of the same letter is 1 time unit. The space between letters is 3 time units. The space between words is 7 time units. Equipment Usage How to use the power supply on the breadboard How to find specifications on the equipment purchased. Equipment List Python Programming Comments Variables Datatypes https://www.w3schools.com/python/ GPIO Pi specific programming https://www.raspberrypi.com/documentation/ https://sourceforge.net/p/raspberry-gpio-python/wiki/Home/ Pulse Width Modulation Control the amount of light output from an led Look at how to get inputs from the user in python Input validation.  Making y...