AI on the Edge LESSON 7: Homework Solution for Dimmable LED 

AI on the Edge LESSON 7: Homework Solution for Dimmable LED | Technology Tutorials 

  • Translate the value from potentiometer and scale using a linear slope formula to create a dimmable LED, then use exponential to make it more apparent 
from fusion_hat.adc import ADC
from fusion_hat.pwm import PWM
from time import sleep
potPin = 0
myPot = ADC(potPin)
bluePin = 5
blueLED = PWM(bluePin)
while True:
    potVal = myPot.read()
    writeVal = 100**(potVal/4095) - .01
    blueLED.pulse_width_percent(int(writeVal)) #make dimmable with potiemeter
    print(potVal, round(writeVal, 2))
    sleep(.1)

Taking Claude Platform 101

  • When you make API calls to code, you specify parameters like max tokens in messages. create function, the persona of a code reviewer in the system prompt, etc.
  • System Prompt: 

Reading The Technology Trap | Princeton University Press

  • Engels Pause is the multi-decade lag during a technological revolution when national productivity and corporate profits soar, but real wages and living standards for ordinary workers flatline. Happened for decades during the industrial revolution. We might be in that for modern AI

Build Day

  • Improved crisis mode on breathing app
  • Fix bug for infinite looping 
Posted in , , , , ,

Leave a Reply