Hi, Flotul
From the very far I remember ...
ALL Variables have to be initialized before using them ....
Only one exception : IF you write variables the first time you use them ...
Say :
Type: Posts; User: Acetronics2; Keyword(s):
Hi, Flotul
From the very far I remember ...
ALL Variables have to be initialized before using them ....
Only one exception : IF you write variables the first time you use them ...
Say :
Hello François
Have an eye Here: http://www.leapsecond.com/pic/picdiv.htm
Alain
Hi,
have a look here : http://www.robsonco.com/Dinsmore/Compass2-bas%20program.pdf
site to visit : http://www.robsonco.com/Dinsmore/Untitled_5.html
Alain
decoupling capacitors are missing !!!
the " magic " one : 0.1/0.22 µF as close as possible to the supply pins of the Pic , and a " reservoir " one say 100/220 µF in the vicinity ...
add to that...
Hi, Pedja ...
you just redraw the TL431 !!!
http://www.bristolwatch.com/ccs/img2/TL431p.jpg
just have a look to its " OFF " state current ... : Off-State Cathode Current IK(off) VKA = 40V,...
Hi, Peter
I wrote = the number the ADC returns ...
Whatever processor you use ( of course, a PIC is much better :rolleyes: )
Have a nice day
Alain
Hi, peter
why not use a TL431 or similar " zener effect diode " that will draw some current past 2.5v ...
Hi, Peter
I suggest you to try :
count = ( 1001 x Voltage - 9891 ) / 8 ;)
Alain
You're Welcome Ioannis ...
AND we are old friends !!! ;)
8959
Alain
Hi, Ioannis
No, no ... it's not an error : if you divide the pulse train per 2 ( D Flip-flop ...) ... the High or low pulse you get @ output has the exact rotation period ... ( remember how you...
1) https://noctua.at/pub/media/wysiwyg/Noctua_PWM_specifications_white_paper.pdf
2) @ these very low frequencies, the use of a divider per 2 ( so ... to measure the rotation period ! ) and using...
Hmmm ...
Here I do recognise THE Curious one ...
Are you really sure you open your manual on page 129 ??? ... I think ( and I am sure !!! ) you open it on page 131 ...
BTW ... open your...
Hmmm ...
I do not think at all PULSIN is the command to use ...
just open your Holy manual :rolleyes: on page 129 ...
May be you should consider closer the waveforms to choose the good...
Some readings about the very powerful ... BUTTON command could be helpful, then ...
but, of course, you can rewrite it by your own ...
:wink:
Alain
Hi,
What's YOUR time lag for " immediate " ...
as always, this is a highly subjective point of view ...
Generally ... " immediate " means ... Interrupt !
Knowing your general way of...
I really do think the IDE is going to be not so far from the Arduino one ... :D:D
in the " ever better " versions list ... we have forgotten the last MPLABX release that showed a ( useful )...
BTW ...
I see MCS allows to select using MPASMX assembler or not ... ( View / Compile and program options )
could be useful here ... if not using latests chips ( ? )
I still use MPLAB 8.92...
Hi, Shane
You're right ... the "bug " is confirmed with MPLABX 5.40 ... ( and as always ... no news from [email protected] Melabs ... )
PBP works fine with previous MPLABX 5.35 ...
Alain
Using MAX and MIN operators provided by the compiler ????
4 times IF-THEN in a row, ... Time to have a look to SELECT CASE ...
BTW ... if you want your number staying between 0 and 255 ......
Hi, Flotul,
Those BMS are not always installed ...
I have dozens of LiPo / LiFe batts home and only one has it included ... so, consider it's not mandatory !!!
sometimes, there's only a fuse...
Hi, Ioannis,
for those calculations ... I suggest you to have a look here : https://www.miscel.dk/MiscEl/miscel.html
especially here : https://www.miscel.dk/MiscEl/miscelIntegerMath.html
the...
Hello, Flotul,
LiPo batts are somewhat tricky to use ...
I suggest you to use something called " BMS " with your battery ... it's a device that cares with every problem that could occur :...
8852
was a moment we had not seen that one ...
Good ol' times far away ...
:rolleyes:
Alain
I read somewhere in microchip datasheets there might be a @NOP just past the @SLEEP ...
INT1 is the wakeup event.
here it has been working fine for me ... for about 15 years ! ( Lawn tractor...
I just answer the question as it is asked ... :D
... for my own use, chips come from Conrad, Reichelt, RS, Farnell or other well known sellers ... :rolleyes:
Alain