Final Project
Bill of Materials:
My Arduino’s Code:
Schematic design:
Second Milestone
My second milestone was having a RFID card that was able to unlock my computer. I was able to complete that but I was facing a lot of technical difficulties by trying to make two arduino’s communicate with each other, which wasn’t working out the way I wanted to work. It caused me to have a lot of delays because my arduino uno wasn’t working with the arduino Leonardo, which caused me to be behind and lose a lot of time to modify my project. But then I realized that instead of making two arduino’s communicate with each other, I could just change the library name to Adafruit_PN532 and change the other names that had the old library name to the new library name to make it work. When I did that the code was able to upload to my arduino Leonardo board and the RFID card was able to communicate with my shield and the RFID card was able to unlock my computer. Which saved me a lot of time because now I’m able to modify my RFID card and do whatever I want it to do. My next milestone is programming a joystick that I could use to unlock my computer without my RFID card.
First Milestone
My first milestone was uploading the code to my shield and making the shield be able to communicate with the RFID card. This involved learning how to code for a Arduino Uno and making the Adafruit shield be able to communicate with the Arduino Uno. This also, involved a lot of steps because I had to learn the components of coding and programing on a Arduino. I had to try different kinds of libraries because all of them wasn’t working on my board but when I downloaded the Adafruit PN532_I2C, it worked because that was the library I was suppose download in order for the code to upload on my Arduino Uno.
What I learned from doing this project is that I learned a lot of the components of coding and the difference between HIGH and LOW, also I learned the difference between INPUT and OUTPUT. Which means that when the digitalWrite is HIGH the digitalRead would become High and do something, but when digitalWrite is LOW, the digitalRead would become LOW and the digitalRead wouldn’t do anything it would stay the same. I also learned that in order for you to get something you gotta try multiple times before your code starts working because I faced a lot of troubles in order to try to make my code upload to my board, which happen at the end when I tried a new code with a new library and also I had to change my board from a Leonardo to an Uno in order for the code to communicate my shield and the board.
My next milestone is making my Arduino Uno to be able to communicate with Arduino Leonardo, so it would be able to unlock my computer.
Starter Project
For my starter project, I built a TV-B-Gone. It has a variety of components of batteries, resistors, electrolytic capacitor, ceramic capacitor, oscillator, socket, microcontroller, PNP transistor, NPN transistor, IR LEDs, and LED. The way it works is that the TV-B-Gone contains a resistor that limit the current of the LED, so the resistor sets the brightness of the little indicator LED. Also, the TV-B-Gone has ceramic capacitor, which observe the voltage spike. Which leads to the oscillator, which is the time clock for the microcontroller, it make sure that the microcontroller is performing its function at the correct speed. There is alo a socket , which protect the chip and make it easy to insert and remove the microcontroller. Which leads to the microcontroller, which is a device that stores all the codes and it also turns on the LEDs and it turns them off. The TV-B-Gone also contains a resistor which is the base resistor for the PNP transistor. Also, the NPN transistors are the device that turns the high power of the IR LEDs, which makes the IR LEDs as a remote control that turn the TV on and off. I learned a lot making this project, as it is a soldering kit. I learned how to solder. When I finished my project, it didn’t work because the way I solder the pieces, it was to close to each other, so I had to learn how to desolder the pieces and resolder it again. It took me forever to desolder the pieces because the desoldering takes time and it also takes forever to do. By the time I was able to desolder all the parts and solder it again, I was able to make the TV-B-Gone to work and turn on the TV and be able to turn the TV off.