Tinee9: Arduino Self-Balancer

829

11

About: Tinee9 is a startup company with a goal to help DIY makers, companies, and inventors to make their projects come to life, especially in small packages. One of the way we will achieve that is by providing ins...

Intro: Tinee9: Arduino Self-Balancer

Tiny9 presents the Arduino Self-Balancer just using an Arduino Nano, a servo, and the Tiny9 LIS2HH12 Module.

Step 1: Self-Balancer

In actuation systems for automated drones, hover boards, segways, etc. there is an accelerometer that helps the micro-controller tell motor or servo know what to do.

In the case of hover boards and segways they use and accelerometer as an inclinometer, a device that measures the angle you are at. The desired angle it wants to be at is 0 degree forward or backward, so straight up. If the angle is any degree backward or forward the person would fall over. Example a person balancing on top of a ball. (very hard to do) If the person on the ball leans forward or backward too much with out correcting themself then they will fall off the ball. But if the person is correcting themself on the ball, then they will stay on top of the ball.

Step 2: Materials

The materials you would need for this tutorial are:

You can find the required items at this location

1: Arduino nano or arduino compatible

2: Tiny9: LIS2HH12 Module

3: 5volt Servo (mine is futaba s3114)

4: 24 AWG Wire

5: Wire Strippers

6: Bread Board

Optional items

7: Tiny9: RGB Module (Make the lights turn colors if it is in the wrong or right position)

8: PerfBoard (I used it to show an object move in the video at the end of this tutorial)

9: 1/18 drill bit

10: Drill

11: Screw driver

Step 3: SetUp

To get to this point in the tutorial for setup follow the instructions on these tutorials:

Tiny9: LIS2HH12 3-axis accelerometer module

Optional tutorial if you want to use the RGB Module

Tiny9: RGB LED Module

After you have set up your breadboard to this point then we can do these steps.

1: Attach a wire to the red line on the breadboard and connect the other side to the red wire socket on the servo

2: Attach a wire to the blue line on the breadboard and connect the other side to the black wire socket on the servo

3: Attach a wire to D6 on the Arduino Nano and connect the other side to the white wire socket on the servo

Whooo Hooo all done super simple.

If you are attaching a perfboard to the servo like me then her are some steps:

4: Drill in the middle of the perfboard with the 1/18 drill bit.

5: Screw the screw into the middle of the Perfboard and connect it to the servo on the other side.

Step 4: Download .ino

Download here from github the Tiny9: Self Balancer .ino for arduino.

Upload it to the Arduino Nano.

Step 5: Now Enjoy!!!

Now that everything is hooked up and you have the the code in the arduino, move the X axis (see video for orientation) of the breadboard and see the servo move.

Once you have played with the servo for awhile change the code and make it go faster, slower, or create a magnetic robotic arm that can move up and down and pick up things with its magnet.

Please subscribe to my channel.

I am always looking to making new products, so if you would like to help out and see more tutorials about new products I am making you can go here and donate at my website tinee9.com.

Thanks everyone and keep inventing.

Share

    Recommendations

    • Audio Contest 2018

      Audio Contest 2018
    • Plastics Contest

      Plastics Contest
    • Optics Contest

      Optics Contest

    Discussions