Green Tractor Talk banner
1 - 9 of 9 Posts

· Registered
Joined
·
74 Posts
Discussion Starter · #1 ·
Clearing the air so don’t beat me up.
1. The necessity for inclinometers is debated
2. There are a plethora of inexpensive digital angle readers. None really seemed to fit what I wanted.
3. There are manual inclinometers that are very easy and require no power. I wanted digital.
4. My background is agriculture, and data engineering, and I like to tinker.

That being said, an inexpensive Arduino Uno clone, a basic 1.8” screen/button shield from Adafruit, some soldering, a MPU-6050 accelerometer/gyroscope, some trig, some C code, and I got something that works well. Angle colors change at predefined angle thresholds and I abused the joystick and buttons to allow a set or reset of the sensor, kind of like zeroing a scale and zeroing a scale with weight present, and control the refresh delay (defaults to 2s). Ambitious me might hardwire wire it off 12v and a relay, practical me might use a car lighter adapter with USB. Needs a better case and mounted in the 4066R, and maybe some quick offset angles dropped in if it isn’t mounted perfectly flat, but that’s it.

If anyone’s interested, glad to share the bill of materials, process, and code. Basic soldering skills (just headers and wires) and code is easy to customize. You can even throw a Deere logo on the screen. The MPU-6050 has a temp sensor in it too but it was ignored it for now.

798706

798707
 

· Premium Member
2020 1025R, 120R, 54D
Joined
·
5,390 Posts
What's the cost to build that?
 

· Registered
Joined
·
74 Posts
Discussion Starter · #3 ·
Whole thing can be done for < $60 as-is w/o case, or even less if you don’t care about the Arduino shield or buttons or such. It would work fine either way. Mine was more the “gold plated” version for tinkering.

This exact one:
  • Arduino Uno clone (Metro 328): $17
  • MPU-6050: $7
  • 1.8” display shield: $35. I splurged on that as I wanted buttons to tinker with for other potential things, and it sure beat soldering it all up.

Less expensive:
  • Arduino Nano clone ($10)
  • MPU-6050: $2-$5
  • Other non-shield displays w/o buttons: $5-$20. A similar 1.44” one is $15.
 

· Registered
Joined
·
1,898 Posts
Seen this guys?

 

· Premium Member
Joined
·
4,685 Posts
Whole thing can be done for < $60 as-is w/o case, or even less if you don’t care about the Arduino shield or buttons or such. It would work fine either way. Mine was more the “gold plated” version for tinkering.

This exact one:
  • Arduino Uno clone (Metro 328): $17
  • MPU-6050: $7
  • 1.8” display shield: $35. I splurged on that as I wanted buttons to tinker with for other potential things, and it sure beat soldering it all up.

Less expensive:
  • Arduino Nano clone ($10)
  • MPU-6050: $2-$5
  • Other non-shield displays w/o buttons: $5-$20. A similar 1.44” one is $15.
Well there goes next weekend... 😁 Awesome build!
 

· Registered
Joined
·
255 Posts
We were thinking about making very similar system for ours 4R but with expanded capacity and features. Currently waiting for parts. If you are willing to share the process and code it might help us greatly with kicking off our project. Finalized results will of course be posted on the forum at a later date.
 

· Registered
Joined
·
74 Posts
Discussion Starter · #7 · (Edited)
Absolutely. Attached my v1 - just rename to .ino or copy out of the text file. It's a straight forward build overall.

For the build:
1. Arduino Uno (or equivalent)
2. TFT shield plugs into Arduino and uses two specific digital pins (10 and 8), and the standard four pins needed for serial: 5v, GND, SCL, SDA
3. MPU-6050 attaches to TFT shield to same standard four pins for serial: 5v, GND, SCL, SDA (I just soldered these wires right to the shield)
4. Load the code

The shield and the MPU-6050 use i2c so you don't have to deal with software serial and can run both devices on the same SCL/SDA pins as long as they have different addresses.

Edit: there are a number of global variable declares that can be moved into loop() as wanted. I originally took the approach of blanking out the same text from the prior loop thus needing global variables. Lots of room to adjust as wanted.
 

Attachments

· Registered
Joined
·
3,526 Posts
Really valuable instrument for folks that may drive through the more extreme terrain.
I can't believe how inexpensive the components are, they look slick.
Thank you for sharing this, I like how you think it's simple.....
 
  • Like
Reactions: MattL
1 - 9 of 9 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top