Category Archives: microcontroller

Adafruit Circuit Playground

by Sara & Diba

microcontroller!

What is the Circuit Playground?

The Adafruit Circuit Playground is a beginner friendly development board that’s perfect for anyone curious about electronics and coding. Think of it like a tiny computer designed for creative projects. It’s packed with built-in sensors, lights, buttons, and more, so you can make cool, interactive things without needing a lot of extra parts.

  • A microcontroller that is beginner-friendly
  • Can use physical computing and code to create a multi-purpose platform
  • Has built-in LEDs, sensors, and buttons/switches
  • Small, portable, and easy to use!
  • It is also sewable with holes on the perimeter – they act as pins

Continue reading Adafruit Circuit Playground

Bluetooth communication with BLE

Bluetooth is great for local wireless communication. It has an idealized range of 10 meters, but real world conditions can reduce that significantly (size and placement of antenna, physical or other wireless interference, etc.).

Bluetooth 4.0, aka Bluetooth Low Energy (BLE), made some signifigant changes to how it works with the benefit of it needing less electrical consumption. Continue reading Bluetooth communication with BLE

Serial communication

So far we have touched on the physical side of the world of electronics, but what is even more exciting is that we can use computers to communicate with one another. A good starting point for that is sending information between a microcontroller and a multimedia computer.

We’ll send some information from the Arduino to a p5js sketch, then do the reverse. Eventually we’ll have the machines doing full fledged duplex communication with each other. Continue reading Serial communication

Analog Input

The physical world exists along a spectrum, and fortunately for us, there are a wide variety of sensors that can get information about the physical world. We’ll address a few of the many different types of sensors in a little bit. First, how do we trick a machine that sees the world in black and white nuance and greys?

On your Arduino, there’s a special circuit called an ADC (an analog to digital converter). This samples the voltage on the analog input pins (A0-A5 on an Uno, A0-A7 on a Nano BLE 33/ESP32) allowing us to translate voltage into a numeric representation. Different microcontrollers have different sampling resolutions. Arduinos typically use a 10-bit resolution for measuring input values. This means we can get a value between 0-1023 that represents the analog voltage on the pin (1024 total steps). 0 corresponds to 0 volts, 1023 corresponds to 3.3v, and everything else maps neatly in between (512 is 1.68V,  768 is 2.5V, etc). An int is the ideal data to to store this in. Continue reading Analog Input

Digital In and out – the Hello World of microcontrollers

The general idea behind software is that it abstracts something close to what we might use to communicate with one another into machine instructions (a series of 0s and 1s). We have limited options for the Arduino. The Arduino language is a high level variant of C with a few C++ features. 

Arduino has an IDE (Integrated Development Environment) that allows us to write code and compile it to machine language in one place. It will also load the code onto the microcontroller for us. Once on the microcontroller, the code will operate independently from the IDE. You can upload your code, unplug the microcontroller from your computer, and let it go on its own merry way.

Continue reading Digital In and out – the Hello World of microcontrollers