Second Step
WEEK_2
WEEK_2
Fusion Comeback 🔄
DAY_3
Start the second week with a musical-inspired project: two connected music notes representing my passion for Music .
This time, I explored a new function in Fusion (Extrude) to transform the flat sketch into a three dimensional shape (3D).
This task was my first time using the (Revolve) function in Fusion. I created a clean, symmetrical vase by revolving a profile around a central axis.
Extrude & Revolve Together!
in this task, I combined two functions Revolve to model the vase and Extrude to shape the tabletop and legs.
For this task, I designed two chess pieces: the knight and the pawn. I used tools like extrude and revolve to shape them. The knight’s curved form required more attention, while the pawn was simpler but still fun to create, Since chess is one of my hobbies, I particularly enjoyed this task, as it allowed me to bring a personal touch to the Design process.
dish!
In this task, I created a simple dish using the Revolve function as a revision and open it using offset.
this was my first time using the Loft function, I used Loft to create a bottle by several sketches at different heights , then joining them into one continuous form even if they have different sizes or shapes.
This video was helpful for me in this task Link.
Back to Circuits
DAY_3
in this task, I started exploring electronics and programming by using Arduino to control five LEDs. Each LED turns on and off one after the other in a sequence.
_Anode (positive leg) of each LED was connected to a different digital pin on the Arduino.
_All the Cathodes (negative legs) of the LEDs were connected together on the same breadboard rail, One Resistor was connected from the shared cathode rail to the GND pin of the Arduino.
**How the Code Works 💻:
_First, I defined five variables for the LED and one variable for delay time using (int) , and connected to digital pins On Arduino.
_in the (void setup()) function, I used (pinMode()) to set each pin as an OUTPUT, allowing Arduino to send signals to turn the LEDs on/off.
_ (void loop()) function runs code repeatedly.
_(digitalWrite(myledred, HIGH)) turns the LED on.
_(digitalWrite(myledred, LOW)) turns the LED off.
_(delay()) The time between one LED light on and the next one, depends on the variable delaytime that was defined at the beginning.
A 7-segment display is a simple electronic component used to show numbers. It has seven LEDs (a to g) arranged in a figure_8 pattern. By turning on specific segments, you can form digits like 0, 1, 2... up to 9.
_Each segment of the display (a to g) and the decimal point (dp) was connected to a separate digital pin on the Arduino.
_One Resistor was connected to GND on Arduino connected with common cathode of the 7-segment.
**How the Code Works 💻:
_defined variables (a to g), the dot (dp) and one variable for delay time using (int).
_These pins are set as outputs in the (void setup()) function using (pinMode()).
_ (void loop()) function runs code repeatedly.
_the code inside the(void loop()) function shows how each number is formed by turning ON (HIGH) and OFF (LOW) specific segments According to each number.
EX. Zero → Segments a, b, c, d, e, f ON – segment g OFF
This video was helpful for me in this task Link.
DAY_4
in this task, I built a circuit that controls an LED using a push button. When the button is not pressed, the LED stays on, and when the button is pressed, the LED turns off.
_The LED Anode is connected directly to digital pin on the Arduino.
_The LED cathode is connected to a resistor , and the resistor is then connected to the GND rail on the breadboard and the push button connected to the same rail.
_Connect another resistor to the push button, one end to the pin and the other end to the 5v on the Arduino.
**How the Code Works 💻:
_defined variables pushbutton, led and variable for pushbutton state using (int).
_ set output and input in the (void setup()) function using (pinMode()).
_Serial.begin(9600) Starts serial communication so we can monitor values using the Serial Monitor.
_use digitalRead() to check the current state of the pushbutton and the result is stored in the variable pushbuttonvalue.
_Serial.println() prints the value in the Serial Monitor
_(if{}) : when the button is not pressed, state reads HIGH, so the LED is ON.
_(else{}) When the button is pressed, state reads LOW, and the LED turns OFF.
this circuit uses an RGB LED where each color pin (Red, Green, Blue) is controlled separately using a Switch.
_each anode of the RGB LED is connected to different digital pin on the Arduino.
_cathode is connected to a resistor , and the resistor is then connected to the GND rail on the breadboard.
_each Switch (Common Leg) is connected to a pin.
_One side of each Switch goes to 5V, the other side connects to the GND through Breadboard.
**How the Code Works 💻:
_defined variables Switches, RGB led and variable for Switches state using (int).
_ set outputs and inputs in the (void setup()) function using (pinMode()).
_use digitalRead() to check the current state for each Switch and the result is stored in the variable for each switch (red, blue, green) switch value.
_if{} the red switch is pressed red LED turns ON (HIGH).
_ else{} red LED turns OFF (LOW).
Same logic for the blue switch and green switch.
Irrigation System Using Moisture Sensor💧
while working on the irrigation system task, I had everything connected correctly ,the moisture sensor, LEDs, motor, battery, and the Arduino. The code was also working fine with no errors. However, the DC motor was not working at all. I spent the whole day checking the connections and trying different solutions, but the motor still wouldn’t start. The task deadline even passed while I was stuck on this issue.
Eventually, I found out that the problem was very simple:
I forgot to connect the negative terminal (cathode) of the battery to the GND pin of the Arduino on the breadboard.
Because of this, the circuit wasn’t complete, so the motor didn’t get the proper current flow, even though everything else was correct.
After fixing this connection, the system worked as expected.
"just like Shinji in Neon Genesis Evangelion , I thought everything was in place… until I realized I missed the most crucial connection — GND connection with cathode Battery🤣"
**Moisture Sensor:
_VCC of the sensor connected to 5V on Arduino, GND of the sensor connected to GND on Arduino ,Signal pin of the sensor connected to digital pin.
**LED'S: (Red & Green)
_Anode connected to pin on Arduino through a resistor.
_Cathode connected to GND on breadboard.
**DC Motor &through transistor:
_one terminal of the motor connected to (+) of the battery.
_The other terminal connected to collector of transistor.
_The emitter of the transistor connected to GND on Arduino .
_The base of the transistor connected to pin on Arduino via a resistor.
_Battery (-) connected to Arduino GND on the breadboard.
**How the Code Works 💻:
_if{} the sensor reads "Enough Water" or "sensorvalue == 1"
the green LED turns ON (HIGH), the red LED and motor turns OFF (LOW).
_ else{} the sensor reads "Need Water" or "sensorvalue == 1"
the red LED and motor turn ON (HIGH), and the green LED turns OFF (LOW).