Initial Release of Program for PAT9125 OTS on L476RG Platform
Dependencies: mbed
Fork of PAT9125_OTS_L476RG by
This section highlights the setup and operating guide to integrating PAT9125EL with the Nucleo L476RG.
Setup
Hardware:
- 1. PC with Windows Operating System
- 2. Nucleo L476RG Dev Kit Board from ST
- 3. PAT9125EL Arduino Enabled Board
- 4. USB Cable (one end with miniUSB)
Connection:
Please connect the board as show below.
Supplying Power
Connect the one end of the USB to the PC USB and the other to the Nucleo L476RG miniUSB as shown in the figure below.
I am assuming that you already know and are able to download the code at this point. Once programmed with the latest compiled .bin file, the LED should turn Green, as illustrated below.
Next, we will test to see if the sensor (PAT9125EL) is indeed functional, and able to display the rotational displacement, on the on-board LCD Display.
While you rotate the Rotational Shaft clockwise, you should see an increment in the digital count for "SHAFT" on the LCD Display, also showing "Up" as you rotate the shaft in the clockwise direction.
While you rotate the Rotational Shaft counter-clockwise, you should see decrease in the digital counts under "SHAFT"on the LCD Display, also showing "Down" as you rotate the shaft in the counter-clockwise direction.
While you push the shaft inward, you should see an increment in digital counts under SPRING. While pushed inward, it will show as "Pre" for Press on the LCD Display.
Conversely, once you release the shaft, the LCD Display should show "Rel" for "Release".
To RESET the digital count, press on the button on the bottom left side of the board. This should reset the digital count on "SHAFT" and "SPRING" to "+0000".
Have fun with this and should you have any questions, please do not hesitate to contact us.
History
Publish Test
2018-02-21, by pixus_mbed [Wed, 21 Feb 2018 02:03:40 +0000] rev 22
Publish Test
Initial Release of PAT9125 Library
2018-02-12, by pixus_mbed [Mon, 12 Feb 2018 22:39:15 +0000] rev 21
Initial Release of PAT9125 Library
Merge pixart_lcm to pat9125_mbed.
2018-02-01, by pixus_mbed [Thu, 01 Feb 2018 02:21:55 +0000] rev 20
Merge pixart_lcm to pat9125_mbed.
Remove while(1) loop when sensor initialized fail.
2017-11-01, by pixus_mbed [Wed, 01 Nov 2017 02:19:19 +0000] rev 19
Remove while(1) loop when sensor initialized fail.
Remove unused definition.
2017-10-31, by pixus_mbed [Tue, 31 Oct 2017 09:49:20 +0000] rev 18
Remove unused definition.
LCM & Serial port work at the same time.
2017-10-31, by pixus_mbed [Tue, 31 Oct 2017 09:45:52 +0000] rev 17
LCM & Serial port work at the same time.
Use pixart_lcm and pat9125_mbed libraires.
2017-10-20, by pixus_mbed [Fri, 20 Oct 2017 11:17:05 +0000] rev 16
Use pixart_lcm and pat9125_mbed libraires.
1. Separate LCD and UART mode.; 2. Configure BTN with default pull-up.; 3. NULL handle.
2017-10-20, by pixus_mbed [Fri, 20 Oct 2017 10:58:39 +0000] rev 15
1. Separate LCD and UART mode.; 2. Configure BTN with default pull-up.; 3. NULL handle.
Merge KL46Z
2017-10-20, by pixus_mbed [Fri, 20 Oct 2017 05:51:45 +0000] rev 14
Merge KL46Z
Call serialEvent() in pat9125_mbed::task().
2017-10-20, by pixus_mbed [Fri, 20 Oct 2017 05:43:45 +0000] rev 13
Call serialEvent() in pat9125_mbed::task().