Hello all, I am very new to Arduino, the language and the hardware needed with a project I would like to try. Any help is much appreciated.
I would like to measure the movement of a bar, then using this information calculate the speed, force, and similar measurements. I believe my project would best be suited for a string potentiometer, I would attach the string pot to the bar and once the bar is lifted, have the data sent to my computer for analyzing. I will attach the string pot to the bar with a clip or something similar. The bar should travel in one plane of motion (from ground up) with very little swaying front to back, I do not know that the swaying is important, but worth noting.
The string potentiometer I am looking at can be found here -
I believe I am suited for the ARDUINO STARTER KIT MULTI-LANGUAGE set, and I am hoping I can use a USB to get from the Arduino to my computer.
Before I start to think about coding and formulas, are there any other recommendations, hardware wise, that I would need or you would suggest?
Sorry for the long post, again I appreciate any input.
Or bad translation. Let’s hope it means theoretically infinite resolution, which is probably what would be claimed of an ordinary potentiometer. Obvsly the actual resolution will depend on your choice of A/D converter.
The Arduino UNO has 10 bit a/d build in, but you can get chips or modules and with a bit of care get higher resolution. They are easy enough to to use from the software point of view. If you start coding and experimenting the internal a/d can be enough; if you anticipate wanting more, then code your use of a/d conversion using a function so you can easily swap in other devices to test.
But tell us more about the problem. How big/heavy a bar, how much movement, what control,s how it moves, what exactly data are you hoping to acquire at what rate, what moves the bar how fast &c. &c.
Hard to say what alternatives might work until we know more.
I’m just thinking there might be a cheaper solution that is as good or very close enough.
It’s possible the string pot is the best - it’s your budget and trade-offs though, not mine.
Ive looked more into accelerometers and gyroscopes and I am thinking that you are right, for the price and for just getting started, this may be a better option.
I am hoping to attach a unit to a barbell for weight lifting to measure the movement of the bar from the starting position through the movement then back down to the starting position. I am hoping to measure velocity and distance traveled and then calculate force. The bar alone will be 20kg but with weight added it could be up to 200kg or more. Each movement will last between 2-15 seconds depending on repetitions. The bar should travel 600mm at most.
I am thinking a ARDUINO NANO 33 BLE may be a really good option as I could attach this board to the bar and have it send the data to my computer via bluetooth. From my understanding this would be the accelerometer/gyroscope/board all in one?
Sorry to switch up paths so quickly, I am glad I asked.
Awesome, I truly appreciate all the responses, I think I am ready to dive in.
Arduino Nano 33 BLE - Accelerometer/Gyro/Board
Lipo battery - to power everything
PowerBoost - to boost 3.7V lipo battery to 5v power Arduino
Pololu Mini Pushbutton - on off button.
Ive been looking at the rechargeable battery situation for the past few hours and am wondering what you used in the past to recharge the lipo battery? A few resources say I would need a special charger, that I cannot just plug in USB to a computer or to a wall.
Okay great, I did see the Adafruit device you posted. But also came across many other larger charges that were recommended and was not sure, so thank you.
So if I wanted to create device in a small housing (to attach to a bar) it would look something like this:
Nano 33 BLE > MicroUSB to MicroUSB cable > Boost > LiPo via JSP connection on battery. With this set up I would need to detach the JSP connection from the Boost and connect it to the Adafruit charger separately to charge?
But I could also do:
Nano 33 BLE > MicroUSB to Micro USB cable > PowerBoost > LiPo via JSP connection on battery. With this set up I would not need to disconnect the JSP connection from the PowerBoost to charge the battery as it would be connected to the PowerBoost, which has the separate USB port for charging? Preferred method if reasonable
Edit: As I continue to look, it seems like I have mixed up the USBs for this device. Maybe it goes:
Nano 33 BLE > USB A to MicroUSB > PowerBoost > etc... and the extra MicroUSB on the PowerBoost would be used to charge the unit. The USB A would need to be soldered.
And to add in the Botton switch you recommended earlier, the set up would look like:
Nano 33 BLE > mUSB to mUSB > Boost > 150mm jumper wires (soldered) > Pushbutton > LiPo via JSP with the Adafruit charger separate.
Nano 33 BLE > mUSB to mUSB > PowerBoost > 150mm jumper wires (soldered) > Pushbutton > LiPo via JSP.
I am sure there are more ways to do this but if I were to purchase the above listed products I should be headed in the right direction?