Skip to content

Code to use with the URM37 V3.2 Ultrasonic Sensor, using Sigfox on a SmartEverything board

Notifications You must be signed in to change notification settings

BoraxKid/SmartEverything-UltraSonic-Sensor-Sigfox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

SmartEverything-UltraSonic-Sensor-Sigfox

Code to use with the URM37 V3.2 Ultrasonic Sensor, using Sigfox on a SmartEverything board

Presentation

For this code to work, you will need:

Here's some pictures of my setup (click to see full res):

Setup picture

Setup picture

In this setup, the Blue wire is the Ground pin, the Orange wire is the +5V pin, the Yellow wire is the PWM pin, and the Green wire is the Trig pin.

This script is using this wrapping library to properly communicate with Sigfox.

Using the script

In Arduino, you need to choose the "Smart Everything Fox (Native USB Port)" board, if you don't have it, install it from Tools > Board > Boards Manager and type SmartEverything Fox.

Then change these two lines

int trig = 9;
int pwm = 13;

And replace 9 and 13 by the number of the pins you used in your setup.

When the script is running on your board, it should print (if there is an object 10 cm away of the sensor)

Distance: 10 cm
....... 
OK

The dots are printed while the message is being processed. When OK is printed, your message has been sent to Sigfox, else KO will be printed.

The message sent is either 0 or 1, as ASCII char, so 30 or 31 if converted to hex.

About

Code to use with the URM37 V3.2 Ultrasonic Sensor, using Sigfox on a SmartEverything board

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%