KB2040 challenges

KB2040 challenges #

Set 1 #

  1. Make your KB2040 blink its on-board NeoPixel LED once per second.
  2. Make your KB2040 flash an external LED so there are 2 flashes per second, controlled by pin D5.
  3. Make your KB2040 send the text, “I, for one, welcome our new insect overlords.” to your serial monitor once per second.***
  4. Use a 10k resistor to pull pin D5 high or low. Print out the pin’s state as “HIGH” or “LOW” on the serial monitor every time it changes.
  5. Make an LED on D6 mirror the state of D5, controlled by the 10k resistor as in the previous challenge.
  6. Make an LED attached to pin D6 send Morse code for “TUFTS”.
  7. Turn your gearmotor on for 5 seconds, then off for 5 seconds, then repeat, using pin D6. You’ll probably need a transistor for this.

Set 2 #

  1. Make your gearmotor slowly increase in speed for 5 seconds, then slowly decrease in speed for 5 seconds, then repeat, using pin D6.
  2. Use your potentiometer to make a variable voltage. Read the voltage with pin A0, then print the voltage (in volts) to the serial monitor.
  3. Use you potentiometer on pin A0 to control the speed of your gearmotor on pin D6.
  4. Challenge TBD with photoresistor.

*** If you’re like Kristen and didn’t get this cultural reference, here’s an explanation: https://knowyourmeme.com/memes/i-for-one-welcome-our-new-insect-overlords