Experimenting with ToF10120 LASER Rangefinder on Arduino

Just acquired a TOF10120 Laser rangefinder (from here), and was trying to connect to my Arduino as per instruction here:

https://surtrtech.com/2019/03/18/easy-use-of-tof-10120-laser-rangefinder-to-measure-distance-with-arduino-lcd/

Unfortunately, I keep getting this error upon uploading, after setting up all my connections on the Arduino:

I have two Arduino UNO, and both gave the same error.

Finally after lots of tweaking everywhere, I managed to solve the problem.

All the circuit connections on the Arduino must be disconnected first, before I upload the program.

I repeat the operation on another Arduino UNO: if the circuit connection with the laser rangfinder is still in-place, the uploading will always give error. Once you disconnect all the circuit, upload the program, and reconnect the Arduino circuitry again, every thing worked (as shown in the serial monitor screen below):

Usually I don’t have to disconnect the circuitry while uploading. But in today’s case, and reversibly, repeated on two Arduino UNO, it is proven that you need to disconnect the circuitry while uploading the program. Weird.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Penetration Testing Lab

Offensive Techniques & Methodologies

Astr0baby's not so random thoughts _____ rand() % 100;

@astr0baby on Twitter for fresh randomness

The Data Explorer

playing around with open data to learn some cool stuff about data analysis and the world

Conorsblog

Data | ML | NLP | Python | R

quyv

Just a thought

IFT6266 - H2017 Deep Learning

A Graduate Course Offered at Université de Montréal

Deep Learning IFT6266-H2017 UdeM

Philippe Paradis - My solutions to the image inpainting problem

IFT6266 – H2017 DEEP LEARNING

Pulkit's thoughts on the course project

the morning paper

a random walk through Computer Science research, by Adrian Colyer

The Spectator

Shakir's Machine Learning Blog

Everything about Data Analytics

big data, data analytics

calculated | content

Thoughts on Data Science, Machine Learning, and AI

%d bloggers like this: