Fun Learning is an effective way for developing education in a passionate manner! It drives motivation with an adorable practice, which is making it our objective to help young students and educators to flow into a paved progressive road.
Nowadays, we found a lot of organizations that follow a planned approach for entering and advancing this kind of education.
Thus, when we enjoy what we do, it becomes a spontaneous activity! And even tiny electronics can follow this attitude.
In this project, we'll consider a Hexabitz IMU module (H0BR40) as the middle balancing point of a seesaw, for estimating the angles and giving prompts to two RGB LED modules (H01R0x), as an indication for the first part of the seesaw and the second one.
1. FTDI USB to UART Serial cable
2. Hexabitz IMU module (H0BR40)
3. Hexabitz RGB LED module (H01R0x)
Firstly, we prepare the project items and plan our array design by aligning the three modules side-by-side.
· Then we solder the modules together using Hexabitz Fixture.
After building the topology for the three modules and setting their configurations, we include the topology for each module.
Then, we can specify any value from the IMU module (H0BR40), for instance, we've chosen to estimate gyroscope value "gx".
After defining "gx" as a float variable, we send it to the appropriate RGB LED module (H01R0x) which will light in accordance with the angle that the seesaw is at.
We get the raw gyroscope sample (in digits) by using the following API:
Module_Status SampleGyroDPS(float *x, float *y, float *z)
Then we split the ranges in order to turn on the appropriate LED (appropriate part of the seesaw) and turn off the other one to illustrate who’s side is up and who’s side is down, as following: