The HC-06 module (if you have the backplane with it too) has a state output...
This output toggles on and off when not paired and is solid on if it it...
So, you can write a routing that looks to...
Type: Posts; User: comwarrior; Keyword(s):
The HC-06 module (if you have the backplane with it too) has a state output...
This output toggles on and off when not paired and is solid on if it it...
So, you can write a routing that looks to...
Thats wonderful... I think that's everything i was missing...
However why does the pic18 lib and macro's have bank checking routines when, according to the data-sheet the ram and program memory...
Henrik, i already looked... It's not in the MAC file...
It looks like it's embedded into PBP... which is not helpful...
ok, nope i'm lost again...
The macro for CMPGT?WCL is...
CMPGT?WCL macro Win, Cin, Label
if ((Cin) < 0)
L?GOTO Label
never mind... i just realised some of these commands are actually macros... thats why i can't find them...
PIC is 18F46K22 @ 64MHz...
Compiler is MPASM...
Basically, i'm looking into an asm piece of coding to create correct timings for the WS2812B LEDs...
When i used PBP to spit out the wave form...
yep, the pbp manual does indeed tell me how to include assembler in my code...
However, it does not tell me what opcodes the assembler is using...
ok, I think I'm needing to write stuff in assembler now due to timing issues.
However, when i open the ASM file for what i have already written, some of the mnemonics / Operands are not the standard...
Each chip is current limited to ~19mA per channel... and there is 3 channels...
SPCW pointed this thread out to me on mine, so, i'll fetch what i've got over here...
I purchased 10 of the little chips off ebay. Becarefull with the chips when soldering them as they are...
Im sure people have seen the WS2812 and WS2812B's on youtube and ebay.
They are a tri colour LED with built in constant current controller chip.
The arduino community is all over them but I've...
ok, here is the full code... i didn't think the top bit was necessary...
norm, i agree, no return for the gosubs...
Mark, Thank you for the reply.
perhaps i should have explained more.
I'm using DT's interupts. SERVO_HANDLER is jumped to whenever TMR0 overflows and interrupts.
The endif's after the @...
Linux my be a better choice...
It may be more learning and not quite as easy, but it'll be far more stable and your also able to communicate with MySQL too...
Hi Tina,
I'm going to need a little more information when you say 'outside'...
You say your android pad and pic are both on wifi... but then you say you need a static IP...
If you are still within...
Okay, this is worrying... Since no one has said anything that would indicate i havn't make a mistake...
So the question is why is it not doing what it should...
well, according to the datasheet the A1302 should work fine for your application.
5V only though, but it's linear 1.3 mV/G so for every 1.3mV on its output you have 1 gauss... if you used a 4V...
Hi RFsolution,
With line following robots, they have inputs from both (or all) sensors so that they know if they are way too far over.
From your description you have 4 distinct zones of control....
I believe most pic16's and PIC18's have a 20mA source or sink limit so a resistor on the pin would not be required.
So FromTheCockpit's diagram above will work, though you will not get 5V to feed...
18F46K22 PBP2.6C
Ok, wanting to command a servo... but, want to use interupts so that the pic can do other things and/or drive multiple servo's...
So, first of all, i started off doing it with...
Henrik,
I agree with you that it must be the HPWM command that is causing the blips since the 46K22 has a buffered PWM.
However, as you can see from the source code, i do most things by setting the...
hi guys...
I've been trying to figure this out all weekend and I'm stumped...
I have a project that I'm doing for my sisters birthday. It uses all 5 hardware PWM on the 18F46K22.
However, i...
can you post your configuration header, just incase you have a typo or something...
I'm not sure how many issues i actually have here but i'll list the symptoms...
1) MCS compiles PBP files and then says cancelled once it's complete (i turned silent off so i KNOW it completed...