Hello,
My first post. I have the SR04 measuring nearly exact and linear , increments and decrements 1cm movements ,at least out to 120cm at a flat surface. Great, but I can't get it to go into inch measurement mode. The only changes I made were pin and osc assignments for a 16F917. Ping on portd.1, echo on portd.2, alarm on portd.0.
OSC=HS, #chip 16f917, 16
Also have a 4 wire 1602 LCD configured and tested to run well.
SR04.H, In addition to #define USUnits inch , I tried to force #define USUnits 130 us 'inch
Still in cm units.
Had lots of fun with the GCB, the new Hot release has come a long way since I tried it a few years ago.
Code seems fairly well packed.
Last edit: goprocessor 2016-01-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
My first post. I have the SR04 measuring nearly exact and linear , increments and decrements 1cm movements ,at least out to 120cm at a flat surface. Great, but I can't get it to go into inch measurement mode. The only changes I made were pin and osc assignments for a 16F917. Ping on portd.1, echo on portd.2, alarm on portd.0.
OSC=HS, #chip 16f917, 16
Also have a 4 wire 1602 LCD configured and tested to run well.
SR04.H, In addition to #define USUnits inch , I tried to force #define USUnits 130 us 'inch
Still in cm units.
Had lots of fun with the GCB, the new Hot release has come a long way since I tried it a few years ago.
Code seems fairly well packed.
Last edit: goprocessor 2016-01-04