Pages: [1]   Go Down
Author Topic: morse code through ultrasounds !!!!!!!!  (Read 502 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello i am working on a project the last year now but the lack of knowledge on electronics probably creats the most of my problems. i have allready finished with the rest of my project but now i want to sent a string of 24 chars with ultrasounds from one port from my arduino mega and receive it to an other.

i have fount this schematics over internet and i have connected trancmiter to pin 7 and receiver to pin 8

analogRead on the receiver gives me nothing. ither i am doing something wrong or i cand drive the transmiter !

first of all is something like that going to work ?
should i play with pwm of the transmiter and receiver ports while both works under 40khz ? and if yes, HOW ?
digitalRead and write or analogRead and Write ?

Please help !
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 170
Posts: 12451
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i have allready finished with the rest of my project
if so, can you post your code to see what is wrong with it?

Q: how do you measure incoming bursts? interrupt driven or ?
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i allready did over there too ! my problem is that i don't know where the problem is ! so i am showing the schematics that i am using ! the rest of the code is creating a string of 24 chars for sure, i get it clearly to my screen with serial communication.

now how am i going to transmit and recieve 24 chars with ultrasounds ! that is my problem ! does the schematics look good to you ? and if they are ! do you thing that i should play with pwm to the ports ? i am more like thinging to create two functions for high and for low and then a table for each letter that will have high and lows acordingly. then after char recognition to start all those highs and lows ogether on th transmiter.

the thing is that when i try serial read on reciever i get the same numbers ( around 350 ) EVEN IF I DISCONECT THE WIRE FROM THE RECIEVER PORT  !!!!!!!!!!!!!!!!!!!!!! this is why i don't know what is goin wrong ! and how am i going to fix it !

Thanks for your quick responce
Kourpetis Athanasios
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 439
Posts: 23739
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I can't see you getting much of a signal from an unpowered receiver like that.
You need something to amplify the output into a good enough 1 when it shows up at the input pin.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

do you think that normal sound amplifier would do the job ?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 439
Posts: 23739
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sure. You want a signal from 0-0.5V for a Low and 3.5-5V for a High.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so should i amplify both transmiter and receiver ?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 439
Posts: 23739
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

T1 acts as the amplifier for the transmitter.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: