PBD -01
ANS. While programming with the arduino we faced a few challenges such as errors in the code programmes , loose connections and incorrect placement of a few wires. But as and how we started to interact with it day by day we were able to recognise our own mistake and correct ourselves. Another problem that we faced was with the sensors`, that is we were unaware of the time delay and a few times we were struggling with it.
2. Describe a specific moment during the Arduino programming process when you had to troubleshoot and debug your code.
ANS. The first step was to verify the wiring. I made sure the VCC and GND pins were connected to the correct power and ground pins .The wiring was correct, so the issue wasn’t hardware-related.I reviewed the code, which was supposed to trigger the sensor and measure the time it took for the ultrasonic pulse to return. I used digitalWrite() and digitalRead() functions to control the Echo pins. The final fix was to add a small delay after triggering the sensor to ensure the Echo pin had enough time to register the return pulse. This delay was crucial for stable operation. I introduced a small delay(100) after sending the trigger pulse to give the sensor time to respond and stabilize the reading.
PBD-02
In what ways were you able to implement the IR sensor's functionalities in your project?
ANS. The IR sensor had two pins: one for power (VCC) and ground (GND), and another for the output signal. The output was connected to an analog input pin on the Arduino to read the sensor's analog value, which changes based on the distance or presence of obstacles. That is whenever any object was placed Infront of it then it would either blink or remain off.
2 . Consider the testing of components like IR sensors, Arduino, and DC motor, How did you approach testing, and what were the key lessons learned from the testing phase of the activities?
ANS. The first step was to check the basic functionality of the IR sensor. I connected the sensor to the Arduino, ensuring that the wiring was correct . I wrote a simple test sketch to verify the sensor’s output. For an IR obstacle detection sensor . By observing the sensor output on the Serial Monitor, I could determine if the sensor's output changed appropriately when an object was placed in front of the sensor . Before connecting any sensors or actuators, I tested the Arduino board itself by uploading a simple sketch to blink an LED . After confirming the basic functionality of the Arduino, I tested specific pins to ensure they were responding correctly to both inputs and outputs. For example, I would attach buttons to input pins and LEDs or motors to output pins, testing each in turn.
PBD -03
1.What challenges you faced while working with transport activity kit and how did you over them?
Challenge: The DC motor or power supply might not work properly, causing the transport mechanism to fail.
Solution: Test the motor and power connections separately before full assembly. Ensure the battery or power supply provides the required voltage and current. Replace faulty components if needed.
Challenge: Issues in programming microcontrollers (if used), leading to incorrect motor control or sensor responses.
Solution: Debug the code step-by-step and test individual components (e.g., motor, sensors) before running the full system. Use simulation software or debugging tools to identify errors.
Challenge: Managing the project within a limited time frame, especially when unexpected problems occurred.
Solution: Break the project into smaller tasks, prioritize critical issues, and allocate time for troubleshooting and testing.
2.What are the possible real-time applications of the limit switches, Stepper motor and Servo motor?
Limit Switches:
Limit switches are used to detect the position of an object or to prevent mechanical systems from moving beyond a certain limit.
Applications:
Automation and Robotics: Limit switches are used in robotic arms to detect the range of motion and prevent over-travel.
Elevators: They ensure that an elevator stops at the correct floor by detecting when it reaches the desired position.
Conveyor Systems: Used to detect when a product has reached the end of the conveyor belt or to activate/deactivate the system.
Safety Mechanisms: In industrial machines, limit switches help prevent accidents by stopping machines when safety guards are opened or when an object reaches a dangerous position.
Door Control Systems: Used in automatic doors or gates to detect whether the door has fully opened or closed.
2. Stepper Motors:
Stepper motors are precise motors that move in discrete steps, providing accurate control over position and speed. They are used in systems requiring high accuracy and repeatability.
Applications:
3D Printers: Stepper motors are used to precisely control the movement of the print bed and the extruder, allowing for accurate layer-by-layer printing.
CNC Machines: Used in CNC (Computer Numerical Control) machines for precise control of tools and positioning along the X, Y, and Z axes.
Robotics: In robotic arms or other robotic systems, stepper motors provide precise positioning and control for tasks like assembly or picking.
Camera Systems: Used in zoom lenses and focus systems to move the lens elements precisely.
Textile Industry: Stepper motors control the feeding of fabric in automated textile machines, ensuring consistent tension and accurate positioning.
3. Servo Motors:
Servo motors are used for precise control of angular position, speed, and torque. They are often used in applications requiring high precision, fast response, and controlled movements.
Applications:
Robotic Arms: Servo motors are used in robotic arms for accurate movement, especially in applications like pick-and-place or assembly.
Automated Steering Systems: Servo motors are used in autonomous vehicles and drones to control the steering or movement of wheels and fins.
Camera Gimbals: In camera stabilization systems, servo motors control the angle of the camera to ensure smooth, steady footage.
Aircraft Control Systems: In model airplanes or drones, servo motors are used for controlling rudders, ailerons, and elevators, allowing precise control over flight.
Positioning Systems: Servo motors are used in positioning systems for machinery, including antenna positioning, conveyor belt systems, or machine tools.
Automated Curtains/Blinds: Servo motors control the opening and closing of automated curtains or blinds based on preset commands or environmental sensors.
PBD -04
PBD-04
1.What challenges you faced while controlling in built LED, Stepper motor and Servo motor using MIT app that you have created and how did you overcome them.
Challenge: Establishing and maintaining reliable communication between the MIT App (on a phone or tablet) and the hardware (e.g., Arduino, ESP32, or similar microcontroller) via Bluetooth or Wi-Fi can be problematic due to signal interruptions, pairing issues, or incorrect baud rates.
Solution:
Ensure the correct communication protocol is used (e.g., Bluetooth module like HC-05 for Bluetooth, or ESP8266/ESP32 for Wi-Fi).
Match baud rates between the app and microcontroller.
Implement error handling in the code to detect and manage failed connections or disconnections.
Challenge: Sending signals to control multiple components (LED, stepper motor, and servo motor) at the same time can lead to synchronization issues.
Solution:
Use separate commands for each component and ensure they are executed sequentially or with proper time delays.
Write efficient code in the microcontroller to prioritize and process signals without lag.
2. What are Real time applications of Bluetooth connectivity with LED, Stepper motor and Servo motor?
LEDs: Control lighting systems in real-time, such as turning on/off lights or changing colors based on user commands from a smartphone app.
Stepper Motors: Adjust window blinds or curtains automatically.
Servo Motors: Control smart locks or door openers.
LEDs: Indicate the status of the robot or provide visual feedback.
Stepper Motors: Precisely control the movement of robotic arms or legs.
Servo Motors: Control the rotation of wheels or other moving parts.
LEDs: Create dynamic lighting effects for concerts or parties.
Stepper Motors: Control the movement of stage props or animatronics.
Servo Motors: Adjust the position of cameras or other equipment.