Tell us about your assignment's idea for this week. Why do you care about this idea? What inspired you?(Please include images or links to sources of inspiration)
This week's assignment was to build and program a smart circuit using an Arduino UNO which reads a signal from an input component to control an action component using Code Blocks. This week I put my mind on making a 7-segment display that shows on and off letters that by being controlled by a slid switch.
This week I decided to be creative as when searching for inspiration I couldn't find anything that I liked so I opened Tinkercad and started playing around with components I I reached this idea.
This week, for the tools I used, I used Tinkercad to design and simulate the circuit I wanted to apply in real life. As for the programming for the arduino I used the code blocks feature in Tinkercad then copied the text form of the code and used arduino app to upload the code to the app. When applying the wiring process I used a mini-breadboard, slide switch, 220 ohms resistance, 7 segment display, male-male wires, and an arduino uno.
For the design of the assignment this week, I used Tinkercad website. At first, I chose to create a new circuit, after that I chose the components that I wanted to use this week in my circuit. I chose arduino uno, slide switch, 7-segment common cathode display, and 220 ohms resistance. I then attached the two terminals of the slide switch to the 5v and GND of the arduino. As for the common pin, I attached it to pin number 11. I then started to attach the pins of the 7-segment I attached it alphabetically ascendingly arranged from 0 to 6 and color-coded by the arrangement of colors as in the list of colors of wires in Tinkercad list. Then for the common cathode of the 7-segment, I connected the 220 ohms resistance in series and the other terminal of the resistor I connected it to the ground of the arduino.
O and N letter codes
O and F letter codes
Space and f letter codes
If condition code
For the coding process I started by if condition to read the digital signal sent to pin 11 if it is high or low. If the reading of the code is high then the 7-segment display will show the letters O and N. If the signal of the reading of pin 11 of low the 7-segment display will show the letters O, F and, F. When the display is showing the word off I had to put in a code to turn off the segment in between the 2 Fs so it will show.
For the application process I used the tools from my kit. I used arduino uno, 7-segmnet display, slide switch, 220 ohms resistance and male-male wires. I connected the slide switch with the arduino so that one terminal is at 5v pin and the other terminal is at GND terminal. As for the common in the slide switch I connected it to pin number 11. I then connected the pins of the 7-segment display in alphabetical order ascendingly with pins from 0 to 6 arranged ascendingly as well. I connected a 220 ohms resistance in series with common cathode pin in 7-segment display. Once satisfied with the wiring of the circuit I head to the coding part where I chose the coding on Tinkercad in Blocks+Text format then copied the code given and pasted it in arduino coding application. I then saved the file and compiled it then uploaded the code to the arduino board using the blue connection wire.
This week I asked for feedback to my team mates as I faced some complications in my assignment at first as I was confused about what to use for output in my project and after consideration I settled on 7-segment display also when I tried to connect the components on Tinkercad and after coding when starting to simulate and the circuit didn't start my mates in my group pointed on the type of common in the segment so I chose cathode.
My first idea to try to make for the project of the assignment this week was to make the 7-segment as an output and the ultrasonic sensor as input. I indeed tried to make the circuit on Tinkercad and coded it and it worked well on simulation but when applying in real life, it didn't work. I tried the wiring and checking the components and the wires many times also checking the codes many times but all was well. I even used the avometer but all was well. After 2 hours of not understanding what to do, I then changed the idea of the project to do this week to the one I made now. To overcome this challenge I got to ask my instructor and he advised me to change the readings of the ultrasonic sensor which worked well but I didn't get to make the change as I sat my mind on the other idea for the project which I made.