New board

good

When I made my first ATTINY board in week 5, I hadn't soldered it the best; I decided to make a new board so that I'd be using one that was crisp and more reliable. Here it is!

Does it work?

check

Laura helped me check to see if the board works! This required a funky setup since I didn't realize that my headers weren't optimized to plug directly into a D11C. Thankfully, the LED on the board turned on, signifying that it worked; in the following electronics weeks, I'm going to design, mill, and solder a D11C instead of sticking with the ATTINY to make everything more streamlined.

Programming

code

This is the final version of the code that turns on the LED when the button is pressed. With the first version of the code, the LED flickered even when the button wasn't pressed. To solve this, I changed INPUT to INPUT_PULLUP to account for the ATTINY's built-in pullup resistor, which eliminates noise.

mapping

Figuring out how to read the ATTINY1614 to Arduino mapping was crucial for success. This map helped me when defining my LED and BUTTON.

it's on'

And here's the program at work; I'm pressing down on the button, which turns on the LED.

Further exploration

glow

Laura showed me the glow program, which uses analog to adjust the brightness of the LED. Now, when the user presses the button, the LED grows in brightness, going from off to fully bright as it flickers.

glowing

Here's what that looks like!

Thanks for viewing! Back to top