connection to avr

Go To Last Post
21 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i have atmega 168 which gives 6 digital outputs now i want to connect these to a decoder before transmitting it wirelessly.\
i am using 4532 (8 bit priority encoder) then what should be the input at EI pin and GS pin of decoder since rest pins are for input channel.
kindly help

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You said decoder, but you are talking about an encoder. I'm confused.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Why not throw away the encoder and do the encoding in AVR, saving additional 3 outputs?

Warning: Grumpy Old Chuff. Reading this post may severely damage your mental health.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Design function is not clear. you state you want to hook up 6 digital outputs to a decoder but then list an encoder chip. We need more background information. Diagram, Flow chart and or schematic would also help. What kind of transmitter are you using? what is it's input expect. Why are you using a hardware priority encoder rather that software logic?

Need more info.

We have no idea what you project is about so we can't really be helpful.

link

i am a NOOO00B!!

Don’t let that undermine what I just said.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sorry i mean encoder i typed decoder instead of encoder!!!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How many encoders are you using? I could see how the i/o s would be used to gang multiple devices together. The data sheet will have a truth table for the chip.

Pick values that make the chip work the way you want it to. Since we have no idea what you are building I can't tell you.

link

i am a NOOO00B!!

Don’t let that undermine what I just said.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i am trying to read accelerometer adxl335 signals wirelessly to pc.

i have a adxl335 which gives out 3 analog signals and these signal i am giving to my microcontroller atmega168.
now i have a code for tilt sensing which i will burn on my microcontroller. now output of microcontroller is 6 digital outputs which i need to transmit wirelessly via 4532 so i need to convert these g digitl signal to 1 signal which could be transmitted wirelessly.
now what should be EI pin and GS pin of encoder?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Why not simply send the digital values to the USART and connect your wireless transmitter to the TX pin on the 168 and save yourself the headache?

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The EI is an input that will enable the Encoder. If EI is low, there will be no output.
GS is an output. If ANY D0-D7 line is high, GS will be high.

I am not sure this encoder will do what you want. It will give you the most significant bit that is high. But the output is still three digital outputs. Q0, Q1, Q2.

As jgmdesign suggested, the ATMEGA168 can do the digital to serial conversion for you.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

what will be coding for digital to digital to serial conversion??

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

so what will be the scenario if i use ht12e...as my encoder
and tx433 as transmitter and rx433 as reciever and ht12d as decoder..?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

link

i am a NOOO00B!!

Don’t let that undermine what I just said.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

if you are not concerned about privacy then you can ditch the encoder/decoder altogether. The rf links can be fed directly from the tx and rx pins of the AVR. I think those modules have a max baud rate of 4800.

Then look at the datasheet for the Mega168 for it's uart and code away. Simple really.

Configure the uart,
Load the transmitter with the digital information
The UART sends it out.
The RF transmitter puts it on the airwaves

The rf reciever hands off the serial info from the transmitter into the rx pin of the reciever to the AVR
The ART signals a recieved bte.
YOu take that info and work from it

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jgmdesign wrote:
if you are not concerned about privacy then you can ditch the encoder/decoder altogether.

If you are, the avr can do some sort of encryption / obfuscation.

link

i am a NOOO00B!!

Don’t let that undermine what I just said.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
obfuscation.

Had to look that up ;)

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

lincoln wrote:
do you mean this guy: http://store.qkits.com/moreinfo....

yes i mean this only....

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

THose little units work pretty good. You should have no trouble getting a link up and running. Keep in mind they only go to 8kbits

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

just tell me one thing TE pin of encoder will be having what input?? if i am using encoder ht640/s

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

http://www.linxtechnologies.com/...
says its the Transmit Enable. Sounds like it used to Enable the Transmit?

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

datasheet says that inverter is connected to all digital i/p to encccoder and then is fed to TE

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Read all the data sheets carefully, make a schematic and post it here. We can then see if you wired it up right.

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user