First post here, and with that it should be stated that I have literally no idea what I'm talking about here. I just know what I want to make happen.
That being said...
So I have some parts from LittleBits, and a Infrared Proximity Sensor - Sharp GP2Y0A21YK - SEN-00242 - SparkFun Electronics IR sensor. My goal is to learn how to program the AtHeart module that integrates with LittleBits and then with this sensor so I can measure distances and take the values that the sensor puts out and convert those values into a different integer value ranging from 0-30.
I have my parts built for the housing of the sensor and all the wiring and LittleBits modules connected and I know that the sensor works the way I want it to. The problem I face is that the sensor puts out analog values that get larger as the object is further away from the sensor instead of getting smaller when they get closer. It will be measuring distance but will not be expressing the distance in any sort of length unit.
I downloaded the IDE software and opened it up and was basically a deer in headlights. I found a similar project on the project boards, but it used a completely different module and sensor and I know nothing about computer programming to try and extrapolate code to make it work.