Hi everyone i am trying to use the arduino uno and TDC GP22 for the laser range finder application . I configured the register settings to single measurement mode1 with auto calibration enable of TDC gp22.

1.Can any one help me how to send a signal from aurdino uno to the TDC a start signal and also a PWM signal to laser driver for laser pulses to on

2.How to read the results of the read registers and find the time of flight

Everything you need to know can be found in this Application Note:http://www.acam.de/fileadmin/Download/pdf/TDC/English/AN034_en.pdf (http://www.acam.de/fileadmin/Download/pdf/TDC/English/AN034_en.pdf)

They even include source code in C. It's written for an STM32 microprocessor but much of it should be applicable to the Arduino:http://www.acam.de/fileadmin/Download/_software/TDC/GP22_main_AN034.c (http://www.acam.de/fileadmin/Download/_software/TDC/GP22_main_AN034.c)

I am new to this arduino . As a part of my M.Tech i am trying to build a Laser range finder using Arduino uno and TDC converter GP22 laser and photo detector

can any one tell or give me any links how to set the connections between arduino and tdc ,laser, pd.

please help me how to trigger laser diode using firepulse

What resources do you have at your college/university.You must have departments on campus, or at least had subjects concerned with programming, typically C++.Here in this forum you have been given references to code.Read Post #7, #10 and #13Please read them?Can you tell us your electronics, programming, Arduino, hardware experience?Thanks.. Tom... :)

This link is arduino uno and TDC GP 22 for lidar imaging application . I want to use the code for finding the distance up to 5mts what should i modify in order to write and read the register configuration and calibration measurements

I tried to compile your given code using Arduino.ino, but memory issue popped up. I also carefully saw your found Github code, but laser and photodiode pin are not defined. Have you solved this problem? Thanks!

I tried to compile your given code using Arduino.ino, but memory issue popped up. I also carefully saw your found Github code, but laser and photodiode pin are not defined. Have you solved this problem?

As I noted, the code that the OP found did not translate well from Russian and had a problem with using way too much memory. You should probably start by finding a copy of Application Note AN034 (apparently now called Application Note AN000249) for the GP22 and working from there.

Thank you for your fast reply. I have already saw the datasheet of AN034 you posted with its application notes by several universities. Some universities had same purpose with mine, but they did not post any source code; I am contacting with them.

I may try to refer code in the .pdf file you posted, but not sure whether I can translate this code to Arduino.ino software, and actual pinouts are not shown.

Since I am a newbie at hardware, I hope that there are some open codes with wirings, but could not find so far.

The problem is that even the inner function, SPI.transfer does not work for UNO-GP22. The connection is right, and I used the same code as you uploaded(https://github.com/leokoppel/GP22 (https://github.com/leokoppel/GP22)).

And I just found that for the case of the 3 above, SSN, SCK, MOSI waveform works well, but there is no signal from MISO pin. I have already checked the soldered status. Do you guys have any idea?