|
|
|
|
|
|
|
|
|
Hi Rob.
I have used this circuit in one of my RoV's with success. It's a Latching Relay Circuit. From http://www.eleinmec.com/article.asp?24 This circuit uses NO power when not energised. I used this circuit to drive an 100 amp relay. Which is the main power. Regards Antony |
|
|
|
|
||
|
|
Quote:
I'd recommend a 5-core comms; gnd/D+/D-/D+/D-. And I guess you will need some power, or is it battery on-board? The two D+/D- pairs are for TX and RX of RS485. You can do half duplex over one pair but that involves a bit more complexity in direction control. For this type of thing I put the data into a simple packet with header and checksum. Have a couple of buffers in RAM (TX and RX), 12 bytes each should do and a few bytes per buffer to track byte count, buffer position and checksum. Interrupts and a service routine to each RX and TX. Some flags to indicate status; TX or RX in progress, complete, failed etc. With 4 wire comms this can TX and RX at the same time. The small PIC UART is not double buffered so you have to save the received byte pretty quickly or you need gaps between bytes transmitted. I'll have a look through the archives and find some example code to post. I haven't used the UART/232 to connect PICs before but have used it to connect to PCs. I have connected between PIC chips using a clock/data arrangement, which is much faster but not suited to long distance. But it should demo the comms buffer arrangement and interrupts. This is a PIC LCD driver that I used to use with HC11 chips. I haven't made any in long time but I'm currently porting the old HC11 code to connect a LCD and buttons to a PIC18F2525 board. Paul |
|
|
||
|
|
|
|
|
Here is some example PIC16F876 RS232 code using buffers and interrupts. It should convert easily to any other PIC16F chip that has a hardware UART.
There are 4 files that you can view or save. http://www2.pmb.co.nz/blog/work-misc...-code-example/ Paul |
|
|
|
|
|
|
|
Hi all,
Well I've been busy working on the ROV again and I have some good news, finally been able to get the comms working over the umbilical, still using the one wire protocol although I have slowed it down slightly which is not a problem as there is only about 10bytes being exchanged at a time. Also used a bus extender which has allowed me to transmit over 50meters. Also coded in timer interrupts into the data exchange routines so that if noise causes the comms to fail the controllers will not get stuck in a loop and hang up. I have a LED on the ROV control which shows if there was a comms error and it does light from time to time. So as you can imagine am quite happy now that the basic controls are working and the hardware is pretty much complete. BUT, always a but, there is always loads to do;1) need to code in some fail safes into the ROV controller so that if there is a total loss of comms the ROV will surface. 2)Some form of leak checking 3)lights 4,5,6.......... Also need some form of video signal boosting as the signal is distorted after going through the umbilical. So just letting you all know the projects not dead yet ![]() Rob |
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rob Smith's E-Sport 10 Pilot's Report | EricBjorn | Sport Planes | 351 | Oct 07, 2011 01:38 PM |
| Discussion Not FPV but ROV forum | robe_uk | Video Piloting (FPV/RPV) | 1 | Oct 18, 2010 12:36 AM |
| Discussion ROV's | 420TEE | Dock Talk | 11 | Jun 09, 2010 11:29 AM |