KB2040 challenges

KB2040 challenges #

Set 1 #

  1. Make your KB2040 flash an external LED so there are 2 flashes per second, controlled by pin D5.
  2. Make your KB2040 send the text, “I, for one, welcome our new insect overlords.” to your serial monitor once per second.1
  3. Use a 10k resistor to pull pin D5 high or low (i.e., physically toggle between sending it either positive voltage or 0 volts, through a resistor). Print out the pin’s state as “HIGH” or “LOW” on the serial monitor every time it changes.
  4. Make an LED on D6 mirror the state of D5, controlled by the 10k resistor as in the previous challenge.
  5. Make an LED attached to pin D6 send Morse code for “TUFTS”.
  6. 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 your potentiometer on pin A0 to control the speed of your gearmotor on pin D6.
  4. Use a resistor in series with your photoresistor to make a voltage that changes with light exposure. Use that voltage to control the speed of your gearmotor on pin D6.
  5. Use a pushbutton on pin D5 to control when your motor is on and off, using D6 for motor control.
  6. Use an H-bridge circuit to make your gearmotor spin clockwise for 5 seconds, then counterclockwise for 5 seconds, using pins D5 and D6.

Hints #

  1. 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 ↩︎