Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:01 17 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Micromite V4.7 B3-8, problem with Distanc

Author Message
PicFan
Senior Member

Joined: 18/03/2014
Location: Austria
Posts: 133
Posted: 02:06am 05 Jun 2015
Copy link to clipboard 
Print this post

Hello Geoff !

I have a problem with the "distance-command" with V4.7B3-8, i read only 0.4 again. With the Version 4.6 the "distance-command" works perfect.

Thank you !

Wolfgang
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3285
Posted: 02:19am 05 Jun 2015
Copy link to clipboard 
Print this post

Nothing has changed in that area so it should still work OK.

Can you be more specific as to the problem and the configuration that you are using. Also, what has changed between your 4.6 and 4.7B8 tests.
Geoff Graham - http://geoffg.net
 
PicFan
Senior Member

Joined: 18/03/2014
Location: Austria
Posts: 133
Posted: 02:30am 05 Jun 2015
Copy link to clipboard 
Print this post

  Geoffg said   Nothing has changed in that area so it should still work OK.

Can you be more specific as to the problem and the configuration that you are using. Also, what has changed between your 4.6 and 4.7B8 tests.


Hello Geoff !

I use the same PCB and the same hardware, i change only the PIC !

trigPin = 17
echoPin = 18

DO
dst = DISTANCE(trigPin, echoPin)
PRINT dst
PAUSE 1000
LOOP



Thank you !

Wolfgang



Edited by PicFan 2015-06-06
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2934
Posted: 04:12am 05 Jun 2015
Copy link to clipboard 
Print this post

@PicFan,

If you revert back to 4.6 can you confirm it works (i.e. eliminate any changes such as a different U/S module). Then reload 4.7 and confirm not working.

I too have had issues with distance but put it down to a cheap clone U/S module playing up. This has occurred in 4.6 and 4.7; whereas other U/S modules seem to be ok.

I remember lots of issues during Beta testing but Geoff seemed to iron everything out. Maybe worth doing a quick search on TBS regarding the issues uncovered during testing. It may give you an idea as to how to resolve (I seem to remember a resistor being added somewhere along the lines to reduce issues that some people were seeing).

Good luck . . .

WW
 
rentner111
Newbie

Joined: 18/03/2014
Location: Austria
Posts: 19
Posted: 04:44am 05 Jun 2015
Copy link to clipboard 
Print this post

Hello Geoff!

I have the same problem with the distance command in the version 4.7.B8.
Is used the module HC-SR04.
Trigger is at PIN 21
Echo is on PIN 22
With the oscilloscope can be seen that no defined level is present at each port.
With a pulldown resistor of 3k3 to the trigger wire of the trigger pulse is detected by the module.
It then responds on the echo line. This is not evaluated by Mikromite.
With the Version 4.6B and connected to the same pins, the module is functioning properly.


Thank You Very Much.
 
PicFan
Senior Member

Joined: 18/03/2014
Location: Austria
Posts: 133
Posted: 01:47am 08 Jun 2015
Copy link to clipboard 
Print this post

  WhiteWizzard said   @PicFan,

If you revert back to 4.6 can you confirm it works (i.e. eliminate any changes such as a different U/S module). Then reload 4.7 and confirm not working.

I too have had issues with distance but put it down to a cheap clone U/S module playing up. This has occurred in 4.6 and 4.7; whereas other U/S modules seem to be ok.

I remember lots of issues during Beta testing but Geoff seemed to iron everything out. Maybe worth doing a quick search on TBS regarding the issues uncovered during testing. It may give you an idea as to how to resolve (I seem to remember a resistor being added somewhere along the lines to reduce issues that some people were seeing).

Good luck . . .

WW


Hello @WW

I have try with 3 US-Modules (HRS-04) and 3 new PIC,s ! With all 3 Module and PIC the same problem. The V4.6 work without problem, the V4.7B3-8 works not.

Thank you !

Wolfgang
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2934
Posted: 09:05pm 08 Jun 2015
Copy link to clipboard 
Print this post

@PicFan,

I think with your confirmed feedback and the fact that others have experienced similar non-working issues (including me!) then it is over to Geoff to see what is happening at a firmware level. Annoyingly for Geoff, he says nothing has changed between v4.6 and v4.7 so it may take a while to sort out. Appreciate he has a lot on his 'to-do' list so lets all just wait and see what he can uncover . . . .

WW



 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10259
Posted: 10:31pm 08 Jun 2015
Copy link to clipboard 
Print this post

I've found the problem in the 4.7 code and sent Geoff the fix. If you need this functionality in the very short term before Geoff has had a chance to incorporate the fix in a new beta send me a PM and I'll let you have a patched hex file
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2934
Posted: 10:39pm 08 Jun 2015
Copy link to clipboard 
Print this post

  matherp said   I've found the problem in the 4.7 code and sent Geoff the fix.


I have to ask you as to how manage your time so well among the many things you do! Build planes, write code for virtually every kind of TFT/OLED to be embedded into the MM, fix code, . . . .

Next you're going to say you work in the city, get up at 4am, go do a days work, get home at 10pm . . .

Seriously - many thanks for all your time and input into making the already brilliant MicroMite into a totally brilliant product. Edited by WhiteWizzard 2015-06-10
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3285
Posted: 01:17am 09 Jun 2015
Copy link to clipboard 
Print this post

Yes, thanks to Peter I have the fix and it will be in the next beta.
Geoff Graham - http://geoffg.net
 
PicFan
Senior Member

Joined: 18/03/2014
Location: Austria
Posts: 133
Posted: 03:56am 09 Jun 2015
Copy link to clipboard 
Print this post

Hello and many thanks to all from Austria !!

Wolfgang
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025