Fusion Robotics Assignment

This is an assignment to make students demonstate abilities to do circuit building and arduino programming. If we never did robotics before it would be an assignment to also demonstrate their learning process with either AI or other sources. Arduino is a programming language commonly seen in breadboard robot circuits.

I personally would be using Tinkercad to do my virtual schematic.

This is the link for tinkercad: https://www.tinkercad.com/

The assignment would require a circuit schematic, BOM(Bill of materials), and Code. Originally there was supposed to be a video record of the physical prototype, but due to the limited amount of Arduino Unos(mandatory for a project) and the bugs with mac computers inputting code into the Unos the physical prototype became optional.

Circuit schematic

This is a really simple fan. All it does is it lets the wheel(the fan in this case) spin when code is ran through the arduino Unos.

Special thanks to Tiger Wei for helping me with some basics for example ground connects to ground in the wiring and power goes to 5V. And if multiple is needed I can go connect ground to – on the breadboard so the whole lane of – can be plugged for ground. Same for Power.

In here the signal pin on the continuous micro servo is gonnected to Digital pin 9 on the uno, and ground is connected to ground, power is connected to 5V on the breadboard.

BOM

Code

#include <Servo.h>

Servo fanServo;

const int servoPin = 9;

void setup() {
  fanServo.attach(servoPin);
  fanServo.write(180);
}

This is the complete code, it is really simple so I did not need a lot of extra learning since I had little experience in arduinos coding. For most of the basics, I went to docs.arduino.cc for beginner basics and combined it to Python(the coding assignment) and Java(I know how to code personally).

#include <Servo.h>

This tells the Arduino to load the Servo library, which contains all the code needed to control a servo motor. This is like import in python.

Servo fanServo;

This creates a servo object named fanServo. The word Servo tells Arduino what type of object it is. The word fanServo is the name you chose for this servo. You can rename this part to something else if you want, because it’s just a name you gave to the servo controller.

const int servoPin = 9;

This creates a constant variable named servoPin. Its value is 9. This means your servo’s signal wire is connected to Arduino pin 9.

void setup() {
  fanServo.attach(servoPin);
  fanServo.write(180);
}

When the Arduino starts, the setup() section runs one time to prepare everything. Inside it, the servo is connected to pin 9 using attach(), which allows the Arduino to send signals to that exact pin. Then write(180) tells the servo to start spinning at full speed, and after that the setup is complete.

AI usage

AI was not used for this assignment.

Comments

One response to “Fusion Robotics Assignment”

  1. mcrompton Avatar
    mcrompton

    This is very basic, Jacob. I wonder if you could add something like a switch to turn the fan on and off to gain a bit of a deeper understanding of how arduino programs and circuits work? I also need your circuit diagram and either a link to the specific project in TinkerCAD or a video demo of your project.

Leave a Reply

Your email address will not be published. Required fields are marked *