network sensor....(URGENT)
2005-09-17 by sima_zafrani
Yahoo Groups archive
Index last updated: 2026-04-28 22:41 UTC
Thread
2005-09-17 by sima_zafrani
hi... I'm final year student and i'm doing project using ATmega128. my project about network sensor(LDR-light) and want to transmit through TCP/IP...... Can i just write a program using tinyOS only or should i use tinyOS together with winAVR? waiting for ur response.....
2005-09-18 by David Kelly
On Sep 17, 2005, at 5:13 AM, sima_zafrani wrote: > hi... > I'm final year student and i'm doing project using ATmega128. > my project about network sensor(LDR-light) and want to transmit > through > TCP/IP...... > Can i just write a program using tinyOS only or should i use tinyOS > together with winAVR? > waiting for ur response..... Final year, huh? Seems to me making a good case for why you did whatever you finally do is more important than making it work. The difference is whether you are learning how to think and solve problems or if you are simply learning how to turn screws and push buttons. TinyOS? Says you are already decided upon prebuilt motes or mites or whatever they are called. Should be lots of existing code floating around for reading light sensors and controlling light bulbs. Maybe you should look for something more challenging. Why don't you try something challenging such as taking Apnote AVR309 and rewriting it into an avr-gcc library under a BSD-ish license? Then use it to create a light under USB control. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.
2005-09-18 by mrezak5715
well, we have done this before making all network layers containing TCP/IP at layer 4, on Mega128 now here is a Complete TCP/IP module for Data transfer or controlling everything even by gaining access to websites. may be we can help you with your project. M.Reza Keshtkaran
2005-09-30 by pinky elodia
well, we have done this before
making all network layers containing TCP/IP at layer 4, on Mega128
now here is a Complete TCP/IP module for Data transfer or controlling
everything even by gaining access to websites.
may be we can help you with your project.
M.Reza Keshtkaran
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
2005-09-30 by David Kelly
On Sep 29, 2005, at 9:17 PM, pinky elodia wrote: > thanks....for your concern... > actually where can i get information about this..maybe about your > project.... > now, i,m thinking to make to kind of sensor ( light and > temperature) and control by one uC,ATmega128...is it possible?? For > ATmega128, there are 4 input for ADC right?..but i quite confuse > how to read data form ADC..because its convert into 10 bit > data....save into 2 register..normally we just use 8 bit data.... Am thinking you are facing a steep learning curve. If you only desire 8 of the 10 bits then just throw the 2 least significant bits away. Just because the data paths are only 8 bits wide doesn't mean you can't handle 10 or 16 bit numbers. > i would like to transmit data through TCP/IP protocol witout using > PC.....can i use RF transmitter? or what kind of transmitter > suitable for this system? > sorry for asking too many question....i'm new with uC programming > really hopes you can help me...... Now you are stretching for the really hard stuff to do right. A good bit beyond the skills necessary for dealing with 10 bits in 8 bit registers. Then again the desire to do it may be what it takes to get you to the point that you can do it. Look at Fred Eady's stuff at http://edtp.com/ He sells hardware and books implementing all the network stuff you are talking about. Ethernet. Wireless. Very reasonable prices. Very good place for beginners and hobbyists. On the wireless sensor side of things http://www.tinyos.net/ is all about doing the sort of thing you ask. This is more difficult, more professional, graduate level stuff. However there are plenty of off- the-shelf hardware for sale and lots of example software. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.
2005-09-30 by Ralph Hilton
On Thu, 29 Sep 2005 22:17:01 -0500 you wrote:
>
>On Sep 29, 2005, at 9:17 PM, pinky elodia wrote:
>
>> thanks....for your concern...
>> actually where can i get information about this..maybe about your
>> project....
>> now, i,m thinking to make to kind of sensor ( light and
>> temperature) and control by one uC,ATmega128...is it possible?? For
>> ATmega128, there are 4 input for ADC right?..but i quite confuse
>> how to read data form ADC..because its convert into 10 bit
>> data....save into 2 register..normally we just use 8 bit data....
>
>Am thinking you are facing a steep learning curve. If you only desire
>8 of the 10 bits then just throw the 2 least significant bits away.
>Just because the data paths are only 8 bits wide doesn't mean you
>can't handle 10 or 16 bit numbers.
#define ADC_VREF_TYPE 0x20
// Read the 8 most significant bits
// of the AD conversion result
unsigned char read_adc(unsigned char adc_input)
{
ADMUX=adc_input|ADC_VREF_TYPE;
// Start the AD conversion
ADCSRA|=0x40;
// Wait for the AD conversion to complete
while ((ADCSRA & 0x10)==0);
ADCSRA|=0x10;
return ADCH;
}
// ADC initialization
// ADC Clock frequency: 115.200 kHz
// ADC Voltage Reference: AREF pin
// Only the 8 most significant bits of
// the AD conversion result are used
ADMUX=ADC_VREF_TYPE;
ADCSRA=0x87;
--
Ralph Hilton
http://www.ralphhilton.org
C-Meter: http://www.cmeter.org
FZAOINT http://www.fzaoint.net2005-09-30 by Zack Widup
On Thu, 29 Sep 2005, pinky elodia wrote: > thanks....for your concern... > actually where can i get information about this..maybe about your project.... > now, i,m thinking to make to kind of sensor ( light and temperature) and control by one uC,ATmega128...is it possible?? For ATmega128, there are 4 input for ADC right?..but i quite confuse how to read data form ADC..because its convert into 10 bit data....save into 2 register..normally we just use 8 bit data.... > i would like to transmit data through TCP/IP protocol witout using PC.....can i use RF transmitter? or what kind of transmitter suitable for this system? > sorry for asking too many question....i'm new with uC programming > really hopes you can help me...... > thanks..... > > Using the A/D converters is very easy, even easier than in the Microchip PIC's. Did you read the full data sheet on the chip? Using the data sheet info, I have never had any trouble using an ADC on an AVR. Zack
2005-10-01 by David Kelly
On Sep 30, 2005, at 6:18 AM, Zack Widup wrote: > Using the A/D converters is very easy, even easier than in the > Microchip > PIC's. Did you read the full data sheet on the chip? Yeah, thats what I was saying about "steep learning curve." An A/D presents such a problem and on top of that he wants to to TCP/IP over wireless. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.