![]() |
Forum Index : Microcontroller and PC projects : Micromite V4.7 B3-8, problem with Distanc
Author | Message | ||||
PicFan Senior Member ![]() Joined: 18/03/2014 Location: AustriaPosts: 133 |
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: AustraliaPosts: 3285 |
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: AustriaPosts: 133 |
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 ![]() |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2934 |
@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: AustriaPosts: 19 |
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: AustriaPosts: 133 |
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 KingdomPosts: 2934 |
@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 KingdomPosts: 10260 |
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 KingdomPosts: 2934 |
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. ![]() |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3285 |
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: AustriaPosts: 133 |
Hello and many thanks to all from Austria !! Wolfgang |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |