Continue to Site

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.

  • 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.

Acoustically controlled vehicle

Status
Not open for further replies.

wufnu

New Member
I have an idea for a vehicle that requires acoustic control (under water). Admittedly, I'm not an EE (ME&AE) so I find that not only do I not know what to do but also I don't know what things exist that I should be learning about in order to do what I need to do :eek: I've had a few courses on basic circuits and I know my way around a soldering gun. I've also read quite a few tutorials on MCU programming. Let me explain what I need and then the thought process I've come up with so far; after that, I would appreciate any information you may be able to pass along. I have done a search and have gone through threads for about an hour or so but I can't seem to find what I need.

Desire: 4 channel acoustic transmitter and receiver

In my statements I won't go into specifics about resistors/caps.

I plan to use a mono-frequency transmitter that pulses its signal with different periods for different commands (I think TV remotes do this with IR??). The 4 channels requires 8 bits minimum (right??) so I assume I'll need to go to a 16bit controller (PIC16). For example, if channel 1 is "left and right" then I need a bit for "left" and a bit for "right", right? Anyway, these go into the MCU and the MCU decides which pulse period to spit out. I assume the pulse period would need to be determined via some sort of measurement of clock cycles, is that right? Then the MCU sends its signal to a 555 timer or something (set to 24.5kHz). The timer sends its signal to a transistor which drives the piezo transducer. This is the transmitter and feel free to tell me if I left out some logic.

The receiver begins at the receiving piezo transducer which receives the signal and sends a voltage to another transistor who passes along the amplified signal to a tone decoder. The tone decoder sets a bit to high when it receives a signal at the specified frequency and this bit switches back and forth at the pulse period (from the transmitter). The receiver MCU measures this pulse period (how?????) to determine which bits to set to high and those signals will be routed through appropriate transistors for whichever function I need them to do (actuators, motors, led, etc). Is this about right so far?

General comments, evaluations, and ideas are appreciated.

Now for some specific quetions:

1. Am I going about this entirely wrong?

2. How would a MCU measure the pulse period (or transmit at a pulse period)?
-2.a-Would it measure clock cycles of high and low for a bit or???
--2.a.1-Would the programming logic be "when bit is set to high start a counter that counts when bit is high and through when the bit is low; finish counting when bit is high again. Multiple count by inverse of clock speed to get seconds"

Edit: Sorry if this question is stupid but do most MCUs have the ability to measure voltage on each bit (allowing the use of a single bit per control channel)? Alternatively, can their output bits be set at a specific voltage?
 
Last edited:
TV type IR remotes send encoded numbers.

I would try to establish a digital acoustic link between your underwater sound emitter and the microphone on the sub. Think modem.

With a digital link you do not have to worry about "analog channels".

Some amount of searching on the web should provide enough info to give you some clue as how to encode and decode the data stream and at what speed.
 
Search this forum for an earlier thread on the same subject, possibly with "submarine" in the title. There were some good suggestions.

I remember suggesting DTMF, it is designed to be very tolerant of transmisiion medium and amplitude and noise etc. You also get 16 commands as standard with just the one sound transmitted.

Google will find tons of DTMF encoders and decoders.
 
I did some searching but didn't find the thread you mentioned; perhaps I didn't search hard enough and will do it later. I did lookup DTMF however I'm trying to keep it simple with a single frequency. Someone suggested on another forum to use UART and that seems the way to go for me, I think. I don't know anything about UART really so I'm trying to read some tutorials on how to use it and what functionality it has.

I find that what I don't know is often more important than what I do know, e.g. I didn't know UART existed :eek:
 
DTMF chips for hobbyist are hard to find. UARTs are used for RS232 communications. Can you use a RF Link?
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top