See viewtopic.php?t=1286&hilit=Hex+to+decimal
Martin
Search found 1698 matches
- Thu Mar 12, 2026 4:41 am
- Forum: General
- Topic: HexToDecimal
- Replies: 3
- Views: 41
- Sun Mar 08, 2026 6:58 am
- Forum: Projects - Embedded
- Topic: AJ-SR04M Returning 9999 while using the AJ-SR04M Component
- Replies: 8
- Views: 1742
Re: AJ-SR04M Returning 9999 while using the AJ-SR04M Component
The component only seems to work with the compatibility mode.
The other modes are interesting too though - I'll try and add something to the board so I can easily switch the connection at r19 and play some more....
Martin
The other modes are interesting too though - I'll try and add something to the board so I can easily switch the connection at r19 and play some more....
Martin
- Sat Mar 07, 2026 9:15 pm
- Forum: Projects - Embedded
- Topic: AJ-SR04M Returning 9999 while using the AJ-SR04M Component
- Replies: 8
- Views: 1742
Re: AJ-SR04M Returning 9999 while using the AJ-SR04M Component
I wrote a very simple program - that sends a trigger and then waits for a return pulse. It measures this using a loop with a 58us delay - and the results look reasonable. Note that the sensor has a minimum range of ~20cm and results go awry below this. The code here also has no time out - so if a re...
- Sat Mar 07, 2026 8:44 pm
- Forum: Projects - Embedded
- Topic: AJ-SR04M Returning 9999 while using the AJ-SR04M Component
- Replies: 8
- Views: 1742
Re: AJ-SR04M Returning 9999 while using the AJ-SR04M Component
The component 'attempts' to add an extra delay - delay 'type' but this is just 20us - the delay before the output pulse (on the board I have anyway) is 12.4ms
So it always 'time outs' the response.
So it always 'time outs' the response.
- Sat Mar 07, 2026 8:29 pm
- Forum: Projects - Embedded
- Topic: AJ-SR04M Returning 9999 while using the AJ-SR04M Component
- Replies: 8
- Views: 1742
Re: AJ-SR04M Returning 9999 while using the AJ-SR04M Component
Wired up the sensor to an Arduino - and got 9999 (error). R19 open (mode 1 HCSR04 compatible) I added a connection to a logic analyser - and the output from the sensor looks good - there is a 'trigger' pulse - followed by an output pulse of variable length (depending on distance) However - the outpu...
- Sat Mar 07, 2026 10:21 am
- Forum: Projects - Embedded
- Topic: AJ-SR04M Returning 9999 while using the AJ-SR04M Component
- Replies: 8
- Views: 1742
Re: AJ-SR04M Returning 9999 while using the AJ-SR04M Component
The protocol does depend on the value of the link R19 - so check that?
I just got one of these in a AliExpress assortment - so will have a play....
Martin
I just got one of these in a AliExpress assortment - so will have a play....
Martin
- Tue Mar 03, 2026 9:43 pm
- Forum: General
- Topic: Compile problem with FC11
- Replies: 38
- Views: 4952
Re: Compile problem with FC11
Edit the file pic_xc8_comp.bat (notepad will do). Add the extra option (--output=mcof) to the line as above (about half way down the file)
Take a backup (of the file) before saving...
Martin
Martin
Take a backup (of the file) before saving...
Martin
Martin
- Tue Mar 03, 2026 2:33 pm
- Forum: General
- Topic: Compile problem with FC11
- Replies: 38
- Views: 4952
Re: Compile problem with FC11
Yes - thanks Steve - that does seem to work! To add: find the file pic_xc8_comp.bat (in C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\PIC\batch (or V10 if you are on v10)) Change the 'new compiler call' to : @REM New compiler call - allowing for additional parameters "%MX_COMPILER%bin\xc8.exe" ...
- Tue Mar 03, 2026 11:11 am
- Forum: General
- Topic: Compile problem with FC11
- Replies: 38
- Views: 4952
Re: Compile problem with FC11
Testing the -gcoff option - it produced a file 'coff'. I'm not sure if renaming this proj.cof would do the trick - it does contain data (human readable) - but don't think it is a .cof file?
- Tue Mar 03, 2026 10:36 am
- Forum: General
- Topic: Compile problem with FC11
- Replies: 38
- Views: 4952
Re: Compile problem with FC11
I'll try the -gcoff option - see if that does the trick...
Martin
Martin