Skip to content

Instantly share code, notes, and snippets.

Mictronics

Block or report user

Report or block Mictronics

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Mictronics
Mictronics / sndway_control2.ino
Created Jul 23, 2018
Controls and reads actual measured distance from LCD bus of a Sndway SW-A40 laser distance meter. Improved version not using Arduino delay that causes random problems with serial interface.
View sndway_control2.ino
/**
* Controls and reads actual measured distance from LCD bus of a Sndway SW-A40 laser distance meter.
* Improved version not using Arduino delay that causes random problems with serial interface.
*
* Serial control characters:
*
* ? Return identifier string.
* c Clears measurement results and turns off laser.
* Can be used as keep alive command to prevent auto power off after 150s.
* M Turns on device when off and triggers a measurement.
@Mictronics
Mictronics / main.c
Last active Mar 21, 2018
Creates sinus and cosinus lookup tables for IQ signal generation for AD9361 (ADALM-Pluto) simulating TX channel settings.
View main.c
/*
* Creates sinus and cosinus lookup tables for IQ signal generation
* for AD9361 (ADALM-Pluto) simulating TX channel settings.
*
* channel_convert_inverse Converts I or Q sample from host format into hardware format.
* channel_convert Converts I or Q sample from hardware format into host format.
*
* See https://github.com/analogdevicesinc/libiio/blob/master/channel.c
*
*/
@Mictronics
Mictronics / sndway_control.ino
Last active Feb 26, 2018
Controls and reads actual measured distance from LCD bus of a Sndway SW-A40 laser distance meter.
View sndway_control.ino
/**
* Controls and reads actual measured distance from LCD bus of a Sndway SW-A40 laser distance meter.
*
* Serial control characters:
*
* ? Return identifier string.
* c Clears measurement results and turns off laser.
* Can be used as keep alive command to prevent auto power off after 150s.
* M Turns on device when off and triggers a measurement.
* S Start continuous measurement mode. Device must be turned on prior to this command.
@Mictronics
Mictronics / sndway_simple_readout.ino
Last active Feb 24, 2018
Readout distance from a Sndway Laser Distance Meter SW-A40 with Arduino Mini
View sndway_simple_readout.ino
/**
* Reading actual measured distance from LCD of a Sndway SW-A40 laser distance meter.
*
* Developed and tested on Arduino Mini 328P@16MHz.
* See https://www.mictronics.de/2018/02/laser-distance-meter-hack/
* Mictronics 2018 @ www.mictronics.de
*/
/**
* Pin connection to LCD SPI bus.
@Mictronics
Mictronics / sndway_lcd_logger.ino
Last active Feb 24, 2018
Log SPI bus from LCD of a Sndway SW-A40 laser distance meter.
View sndway_lcd_logger.ino
/**
* Log SPI bus from LCD of a Sndway SW-A40 laser distance meter.
*
* Developed and tested on Arduino Mini 328P@16MHz.
* Requires circular buffer library from https://github.com/rlogiacco/CircularBuffer
* See https://www.mictronics.de/2018/02/laser-distance-meter-hack/
* Mictronics 2018 @ www.mictronics.de
*/
#include <CircularBuffer.h>
You can’t perform that action at this time.