• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Radio control by location

camerart

Active Member
Thread starter #61
From the d/s:
When Timer1 is enabled, the RC1/T1OSI and RC0/
T1OSO/T13CKI pins become inputs. This means the
values of TRISC<1:0> are ignored and the pins are
read as ‘0’.
Hi J,
Well spotted.
I think we've been here before, but if I'm correct, that was before I added a separate PIC for SERVO control.
I'm now looking at TMR2 instead, and probably have some programs to look at, with TMR2 in.
Thanks.
C.
 

camerart

Active Member
Thread starter #62
Hi,
I always get mixed up between TIMERS and INTERRUPTS.
I've just realised that I don't need a TIMER, only and INTERRUPT. Now the TIMER has gone, the PIC is now talking to the 5100 SCREEN.
There is a still a problem, as nothing is showing on the SCREEN, and I think it's because of either timing or wrong direction SCREEN SWITCHES (CS etc)
C.
 

camerart

Active Member
Thread starter #66
Hi,
I think I've found the problem!
5110 LCD C/S is not working all of the time, although it is switching sometimes.
It's difficult;t to see in simulation, as it disappears.
C.
 

camerart

Active Member
Thread starter #70
Maybe the lcd is set on in the included fontsml. bas?
Can you show the file.
Hi J,
EDIT: File removed, as it was irrelevant [I found this in an earlier working program, which may be a clue:}
Here is the Font file.
C
 

Attachments

Last edited:

camerart

Active Member
Thread starter #72
This should work
In wr_msg(....)
move lcd_cs=1 - > just before End Proc
Hi J,
I tried the above, and nothing!, but the 'logic analysis' looked good, so I pressed the screen and got feint digits. (I mentioned this in #63)

Changed the screen and WORKING!

We've reached a milestone! All of the modules are working for the first time. The Compass shows direction, but needs refining a bit, everything else looks good.

The 5110 shows it's 20.03C and 103423.20 air pressure here.

We've been working on the REMOTE PCB, which now needs programming to control MOTORS/SERVOS.

The BASE PCB is very similar, and fits into a RC Transmitter, which needs programming so that the KNOBS/POTs will control the TX.

Thanks very much 'J' and all others that helped.

C.
 

camerart

Active Member
Thread starter #73
Hi,
I'm switching to the BASE PCB now. This will be fitted into an Rc Transmitter, using the controls to send DATA to the REMOTE.

I've decided that if possible, I will add a Rotary Quadrature Encoder Interface (QEI), as one channel called COMPASS.
Here is a program written by Eric Gibbs, for my TRACKER. The program, uses the 18LF2431 QEI for counting the impulses from the QEI. The resulting number will be sent to the REMOTE as a COMPASS bearing for the REMOTE to turn to.

First, is this a suitable program to start with?
C.
 

Attachments

Last edited:

EE World Online Articles

Loading

 
Top