How to program Gilisymo LS53L0X with ST-Link Program the LS53L0X is very easy. As you already know it contains the STM32F030 a STMicroelectronics micro-controller. You can buy a ST-Link and follow the documentation or you can use a Nucleo Board. ST-Link : https://www.st.com/en/development-tools/st-link-v2.html All Nucleo Boards are composed of two parts: The St-link board and the micro-controller board. The ST-Link board is the little part that you can chose to separate from the micro-controller part. This little board is very useful, in fact from that board you can just use it as UART to USB converter I usually use this board to provide power at 3.3V and to control boards with serial UART, not just to program CPU. To Program the Light Saber LS53L0X I use this schema: You can find the pinout on gilisymo site : https://www.gilisymo.com/ ST-Link from Nucleo Board Light Saber LS53L0X Signal CN4 pin 2 SWCLK pin 1
Gilisymo LS53L0X i2c and Arduino Due Wire In the last post, we have seen how to connect LS with Arduino with the serial interface; here I will show you how to connect Gilisymo plugin with Arduino using the i2c interface. For more detail about the Gilisymo plugin, please visit https://gilisymo.com/ . The connection The LS needs only four wires for this tests, +3v3, GND, SDA and SCL, connected as follow. Note that the LS has problem in the serigraphy, the version actually available has the SDA and SCL inverted! Check the version you have before run the demo. The sketch The sketch starts to search the LS plugin connected. When it founds the plugin, it saves the address in a global variable and a flag is set to avoid repeating the search. For all the further loops, the sketch read the ranging data from LS and then wait for 100 milliseconds. The visual effect in the serial monitor is that we have a new data every 100 milliseconds indefinitely. You can find t