Introduction: The Kinemeter: Part 3: Circuit & Code
Hello again, Viewers and Makers alike.
Today we finish the project we've started. The KINEMETER!!!
As usual, if you have no idea of what I am talking about, then please, pretty please: GO SEE THE PREVIOUS PARTS NOW!!!!!!!!!!!!!!!!!!!!
Done? OKAY, let's do some reflection!
On the last instructables, I showed you how to take the adobe illustrator design I gave, and assemble the pieces into a fully fledged Kinemeter body. The final result is shown in the first image. By the time you finish this instructables, you will have a finished, working, EXCELLENT piece of equipment capable of measuring g within an error of 5%!
If the first part is about what laws of physics this used, and the second part is how to assemble the body, then what's this part about? If the title doesn't give it away, then I will say that is this part where we BUILD THE CIRCUITRY AND DOWNLOAD THE CODE ONTO THE DEVICE!!!!!!!!!! STRAP UP FOR THE CLIMAX OF THE KINEMETER TRILOGY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Step 1: The Parts You Will Need
When cooking up a Kinemeter, you will need the following ingredients:
a) a fully constructed Kinemeter body. The wallsside holes are where you will slide in the sensor.
b) 5 Pairs of Adafruit IR break-beam sensors. These are the mechanisms that you will use to track an object's motion.
c) a 5V Adafruit metro Mini. This is the miniature equivalent of Arduino Uno, so no new IDEs will be needed for your computer when coding.
d) an HC 06. This is how your Kinemeter will communicate your data to your phone. The classic icon on the device shows that it is a blue tooth device.
For those who are more interested in Blue tooth and want a good understanding, I found a link to an instructables about this chip here: https://www.instructables.com/id/AT-command-mode-of...
e) Next you will need an Adafruit Perma Proto half sized. This acts exactly like a bread board.Instead of using jumper wires, you will solder all of your connections in your circuit. This device has a ground and VCC (5V power) but also has TRANSMIT and RECEIVE pins. They are what you want to focus a lot on in building the circuit. NOTE: THIS BLUETOOTH DEVICE IS STRICTLY OPTIONAL! Don't bite off more than you can chew.
THOSE WHO HAVE NO IDEA FOR HOW TO EVEN USE A BREAD BOARD, SEE THIS INSTRUCTABLE HERE:https://www.instructables.com/id/Basic-Ciruitry/
Now that you have all of your parts, lets see how we assemble the rest of the Kinemeter.
Step 2: Building the Essential Circuit
When showing the connections for the Circuit, I will not show what it looks like on a perma proto. The idea of the above images is to give you an idea of Where you connect your wires.
As seen in the first image, the parts you are starting with is a pair of sensors, a Metro Mini and an HC 06. DO NOT do anything with the HC 06 yet. That will come later.
The first thing you want to do when making your Kinemeter circuit is connect the grounds and Powers. In the second image, I only connected the grounds and powers of the SENSORS.
Since one of your sensors (in a pair) is an actual sensor, connect the third pin (marked in yellow) to a pin on the Metro Mini. On the Kinemeter I made and in this 3rd image, I attached the input pin of the first sensor to pin 3 on the Arduino. At this point, you should have one working mechanism that would work with the code.
Now, just repeat steps 2 & 3 for the remaining pairs of sensors you want. To get any meaningful and reliable data from your kinemeter, you need at least 3 SENSOR PAIRS!
If you are finished with building that circuitry, then A) CONGRATULATIONS!!!!! YOU JUST FINISHED BUILDING A KINEMETER!!!!!!!! and B) Do you want to make it blue-toothed?
Sure Making it blue-toothed is a few extra steps but think of it this way, all you would then have to do is have your phone with you and see the data come to you, all wireless.
Step 3: Connecting Blue-Tooth
Now when it comes to setting up your blue-tooth connections, there are a few KEY THINGS you need to keep in mind.
Follow along and I will explain.
Like earlier, connect your VCC pin to 5V and your ground to ground. This is nothing new.
Now here is the tricky part. When attaching your RECEIVE pin on your HC06 to your arduino, you need to add something called a voltage divider.
The receive pin cannot get anything more than 3.3 V. or else it will cause the device to burn out. To avoid this, you need 2 sensors (marked in blue and magenta on the second image). In order to get 1/3 of the 5V removed, your two resistors of choice MUST HAVE RESISTANCES IN A 2:1 RATIO!! It does not matter exactly how much they actually are, so long as 2 is their ratio. The larger resisting of the two resistors will connect to ground. The smaller will connect to a wire that connects to the RECIEVE PIN on the HC 06.
ONCE YOU ARE DONE... Then you will have not only finished your very own KINEMETER, but also one that can connect to YOUR PHONE!!!!!!!!!!!!!!!!!!!!
Step 4: Building Tips
Now, now, I know that these past three instructables are part of a big project, the biggest I've had, so I decided to give a few tips that you might need when actually assembling this device.
When making powers and grounds, you are going to need to make a universal 5V and Ground. The way I did this was by taking two long wires (as seen in the first image) that were connected to ground and power, and placing them on the slack edges of the Kinemeter. This gave me easy access to attaching the sensors and transmitters to powers without complicating the wiring.
For those who are not quite aware on how or where to place the sensors, then see the last two images. On each wall, there are 5 holes which are 1 cm wide and 2 cm tall. These should fit the sensors. Make sure that when inserting them into the holes that ALL TRANSMITTERS are on one side and ALL SENSORS ARE ON THE OTHER.
TIP 3: THIS IS THE MOST IMPORTANT THING YOU CAN DO!
COMMENT!!! Seriously, I cannot say this enough, please please comment. If you have any troubles or confusion on building or just understanding the Kinemeter, then PLZ TELL MEH!!!!!!!!!!! I AM WILLING TO HELP!
Step 5: Get the Code At:
To get the code for the Kinemeter, go to my Github account under GearsnGenes.
Here is the direct Link to the Kinemeter code: https://github.com/gearsngenes/Kinemeter-Model2
To download the code into the Metro Mini you will need a Micro USB. Other than that, you can use regular Uno code.
On a Final Note...
I Hoped you enjoyed this project as much as I did. Please like and share this instructables as the Thriller conclusion of the Kinemeter Trilogy.
I will be switching gears a bit. Instead of messing around with electronics, how 'bout your own body? Biomedical topics coming to GEARSNGENES. NO MORE CLUES!!!!!!!!
Till next time! Stay tuned and stay smart.