Project 3 Introduction
Project 3: Emotive Object
Requirements
- At least one sensor
- At least one motor/servo
- At least one behavior
- Express an emotion somehow
Initial thoughts:
Inspiration:
--> did not want to include a fan, so will make waving cardboard arms to emulate that
Programming practice: turning on a light with the raspberry pi pico
Code:
from machine import Pin
import time
led = Pin(17, Pin.OUT)
while True:
led.toggle() #can also use led.value(1) for on, 0 for off
time.sleep(1) #in seconds
Comments
Post a Comment