Initial Release of Program for PAT9125 OTS on L476RG Platform

Dependencies:   mbed

Fork of PAT9125_OTS_L476RG by PixArt

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.

/media/uploads/pixus_mbed/connection_with_labeling.jpg

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.

/media/uploads/pixus_mbed/connection_with_power_led_red.jpg

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.

/media/uploads/pixus_mbed/connection_with_power_led_green.jpg

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.

Files at this revision

API Documentation at this revision

Comitter:
pixus_mbed
Date:
Wed Feb 21 02:03:40 2018 +0000
Parent:
21:01862e43f169
Commit message:
Publish Test

Changed in this revision

pat9125_mbed.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 01862e43f169 -r 5496743b160b pat9125_mbed.lib
--- a/pat9125_mbed.lib	Mon Feb 12 22:39:15 2018 +0000
+++ b/pat9125_mbed.lib	Wed Feb 21 02:03:40 2018 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/teams/PixArt/code/PAT9125_L476RG/#4b7c15d9c864
+https://os.mbed.com/users/pixus_mbed/code/pat9125_mbed/#4b7c15d9c864