Lecture 5

Cards (5)

  • what kind of information can be read or written to a digital pin
    binary information
  • is an arduino a binary device
    yes, it can only read a high voltage or a low voltage. So, we need a voltage divider circuit
  • what is arduino's ADC?
    analog-to-digital converter. it measures a range of voltages and converts the value of the voltage at any given moment to a digital value
  • which pins support analogWrite()
    9,10,11. Newer boards also support 3,5,6
  • since the arduino is a binary device, how does the analogWrite() method work?
    the method takes 0 to 255 as input. 255 generates a constant 5V at the specified pin. For values between 0 and 255, the pin rapidly alternates between 0 and 255 volts - the higher the value, the more often the pin is at HIGH