caramoan tour package

caramoan tour package

Author Topic: AVR projects  (Read 3343 times)

Offline ATE

  • Size C Battery
  • *****
  • Posts: 225
  • Pogi/Ganda Points: 12
  • -.-
    • Volts and Bytes
AVR projects
« on: September 13, 2008, 06:31:38 PM »
I am very new to AVR pero kelangang mapag-aralan for future purposes.

So, i decided to make my own development board using ATtiny26L. Sobrang simple lang yung board... gusto ko lang matuto ng avr...
Gamit ko din yung AVRISP (thanks to glenjoy... buti na lang gumagana ito sa RS-232 to USB converter... salamat din sa libreng IC's)

here is the board(~10cm x 6.5cm)






here is my schematic (dami kelangang i-improve dito para maging mas functional... pano ba  i-isolate totally yung ISP pins sa ibang devices?)






nagamit ko na sa mga simple routines and satisfied naman so far.

Philippine Electronics Forum

AVR projects
« on: September 13, 2008, 06:31:38 PM »

Offline ATE

  • Size C Battery
  • *****
  • Posts: 225
  • Pogi/Ganda Points: 12
  • -.-
    • Volts and Bytes
Re: AVR projects
« Reply #1 on: September 14, 2008, 07:35:10 AM »
I am going to work for a project.

It is a controller for poultry houses...
It will basically regulate the temperature, humidity, and other conditions. It will also schedule the feeding of the chickens...

It has sensors (temp, humidity). The signals from the sensors will be transmitted wirelessly to the controller.
RF module ng Alexan ang gagamitin ko...

Can you suggest kung pano ko i-interface yung RF module (tx, rx) sa AVRs? Medyo problema ko po kasi yung synchronization sa transmitter and receiver na part... Can I use general i/o ng avrs to send data serially to the transmitter and receive data from the receiver?

I will be using ATtiny13 or ATtiny45 for the transmitter side and ATMEGA16 for the controller side...

Eto yung block diagram


Philippine Electronics Forum

Re: AVR projects
« Reply #1 on: September 14, 2008, 07:35:10 AM »

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10728
  • Pogi/Ganda Points: 632
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: AVR projects
« Reply #2 on: September 14, 2008, 07:38:58 PM »
depende sa transmitter at receiver mo. kung gumagamit ng standard RS232-like protocol, kailangan mo ng AVR na merong UART, or implement it in your code.

'yung ISP, kahit mga series resistor lang pwede na. or use something like opto, makikita ata sa AVRfreaks 'yun.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Philippine Electronics Forum

Re: AVR projects
« Reply #2 on: September 14, 2008, 07:38:58 PM »

Offline ATE

  • Size C Battery
  • *****
  • Posts: 225
  • Pogi/Ganda Points: 12
  • -.-
    • Volts and Bytes
Re: AVR projects
« Reply #3 on: September 17, 2008, 11:39:55 AM »
Eto mga shematic ko:

Remote Unit (sensors + AVR+ transmitter)




Controller (receiver + AVR + outputs)




Pinalitan ko yung crystal freq ng remote unit and controller to 11.0592MHz.
22pF lahat ng capacitors sa crystal not 22uF


Philippine Electronics Forum

Re: AVR projects
« Reply #3 on: September 17, 2008, 11:39:55 AM »

Offline marcelino

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6016
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: AVR projects
« Reply #4 on: September 17, 2008, 01:01:41 PM »
I am going to work for a project.

It is a controller for poultry houses...
It will basically regulate the temperature, humidity, and other conditions. It will also schedule the feeding of the chickens...

It has sensors (temp, humidity). The signals from the sensors will be transmitted wirelessly to the controller.
RF module ng Alexan ang gagamitin ko...

Can you suggest kung pano ko i-interface yung RF module (tx, rx) sa AVRs? Medyo problema ko po kasi yung synchronization sa transmitter and receiver na part... Can I use general i/o ng avrs to send data serially to the transmitter and receive data from the receiver?

I will be using ATtiny13 or ATtiny45 for the transmitter side and ATMEGA16 for the controller side...

Eto yung block diagram



I am also working on a similar project. kaso nga lang i am using PICmicro and zigbee ang wireless interface ko. it is also interface onstandard rs232.
for now, i am having second thought on my designs regarding the conditioning circuits of the sensor...  ano ba yung resistive sensor na gagamitin mo? nagtaka lang kasi ako sa circuit mo, kasi karamihan na resistive humidity sensors required ac supply. yung akin hs15sp, requires not greater than 1V ac signal. yung pulse or squarewave ok lang.

good luck to your project;D
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Philippine Electronics Forum

Re: AVR projects
« Reply #4 on: September 17, 2008, 01:01:41 PM »

Offline ATE

  • Size C Battery
  • *****
  • Posts: 225
  • Pogi/Ganda Points: 12
  • -.-
    • Volts and Bytes
Re: AVR projects
« Reply #5 on: September 18, 2008, 12:51:04 PM »
I am also working on a similar project. kaso nga lang i am using PICmicro and zigbee ang wireless interface ko. it is also interface onstandard rs232.
for now, i am having second thought on my designs regarding the conditioning circuits of the sensor...  ano ba yung resistive sensor na gagamitin mo? nagtaka lang kasi ako sa circuit mo, kasi karamihan na resistive humidity sensors required ac supply. yung akin hs15sp, requires not greater than 1V ac signal. yung pulse or squarewave ok lang.

good luck to your project;D

i am having second thought also sa humidity sensor ko. i might use capacitive sensor kasi mas accurate daw ito and yung resistive ay mas madali daw mag saturate. convert capacitance to freq and convert freq to voltage.

as of now, mag-iiwan na lang ako ng connector para sa humidity sensor.

Offline anthonydp

  • Size D Battery
  • ******
  • Posts: 320
  • Pogi/Ganda Points: 54
  • Gender: Male
    • My Empty Blog
Re: AVR projects
« Reply #6 on: September 18, 2008, 02:14:18 PM »
Quote
convert capacitance to freq and convert freq to voltage.

then convert voltage to digital using adc?

i think much simpler yata kung determine mo na lang yung frequency (aka freq counter implemented sa mcu code mo).
usually kasi sa specsheet ng capacitive-humidity sensor may chart for frequency versus humidity.

just a thought.
your question appears to be an XY Problem.

why don't you just tell us exactly what you're trying to do?

Offline maldihtah13

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4670
  • Pogi/Ganda Points: 120
  • Gender: Female
  • Everyday is a learning process so try to learn ;D
    • Blogspot
Re: AVR projects
« Reply #7 on: September 18, 2008, 02:46:59 PM »
ako ang nagamit ko nang humidity sensor eh voltage ang output. sa farnell ko sya nabili medyo mahal nga lang but easy to interface. About rf module of alexan, prang di ganun kadali ang interface na parang pinutol mo lang ung serial cable tapos pinalitan mo ng rf module. Matagal na rin kasi akong nakagamit nito and as of now di na ulit me gumagamit ksi Bluetooth na ginagamit ko. Aside from mas reliable magiging bi-directional pa ang communication. By using bluetooth pwede mo na ngaung kontrolin ung mga feeding station. isa pang advantage eh pwede up to 7 nodes ang bluetooth. so kung pc ang controller mo pwede kang magkaroon ng 7 area to monitor and control using single controller (di pa pwede kung MCU rin controller or pwede pero mahirap).

Offline marcelino

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6016
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: AVR projects
« Reply #8 on: September 18, 2008, 03:02:45 PM »
ako ang nagamit ko nang humidity sensor eh voltage ang output. sa farnell ko sya nabili medyo mahal nga lang but easy to interface. About rf module of alexan, prang di ganun kadali ang interface na parang pinutol mo lang ung serial cable tapos pinalitan mo ng rf module. Matagal na rin kasi akong nakagamit nito and as of now di na ulit me gumagamit ksi Bluetooth na ginagamit ko. Aside from mas reliable magiging bi-directional pa ang communication. By using bluetooth pwede mo na ngaung kontrolin ung mga feeding station. isa pang advantage eh pwede up to 7 nodes ang bluetooth. so kung pc ang controller mo pwede kang magkaroon ng 7 area to monitor and control using single controller (di pa pwede kung MCU rin controller or pwede pero mahirap).

try nyo naman kaya ang xbee modules... hehehe parang ako lang kasi (at si winterbrun) ang gumagamit eh... hehehe
nagpapadamay!

bluetooth... 7 nodes lang?!;D

xbee modules can be configured in mesh network. so mas madami. sobrang dami.... hehehe and not to mention that it can send and receive to about 1mile? (depending on the power, 1mile is for a 2mW power rating. merong din 30, 50 or 60mW) another thing is low power consumption. TX current is typically 295mA while receiving current is 45mA. 15mA for idle mode.



anong humidity sensor yan?
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline maldihtah13

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4670
  • Pogi/Ganda Points: 120
  • Gender: Female
  • Everyday is a learning process so try to learn ;D
    • Blogspot
Re: AVR projects
« Reply #9 on: September 18, 2008, 03:12:43 PM »
try nyo naman kaya ang xbee modules... hehehe parang ako lang kasi (at si winterbrun) ang gumagamit eh... hehehe
nagpapadamay!

bluetooth... 7 nodes lang?!;D

xbee modules can be configured in mesh network. so mas madami. sobrang dami.... hehehe and not to mention that it can send and receive to about 1mile? (depending on the power, 1mile is for a 2mW power rating. merong din 30, 50 or 60mW) another thing is low power consumption. TX current is typically 295mA while receiving current is 45mA. 15mA for idle mode.



anong humidity sensor yan?

cge bigyan mo ako ng zigbee pra matry ko. Magkano bili nyo? ska saan yan available? Ung humidity sensor is hih 4001 yata.

Offline marcelino

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6016
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: AVR projects
« Reply #10 on: September 18, 2008, 03:32:01 PM »
cge bigyan mo ako ng zigbee pra matry ko. Magkano bili nyo? ska saan yan available? Ung humidity sensor is hih 4001 yata.

hahaha... sapat lang sa project ko yung nandito ko... 1000petot ang isa... sa sparkfun ko binili. sobrang mahal kung sa farnell.
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline maldihtah13

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4670
  • Pogi/Ganda Points: 120
  • Gender: Female
  • Everyday is a learning process so try to learn ;D
    • Blogspot
Re: AVR projects
« Reply #11 on: September 18, 2008, 03:49:30 PM »
hahaha... sapat lang sa project ko yung nandito ko... 1000petot ang isa... sa sparkfun ko binili. sobrang mahal kung sa farnell.


mura na nga, how about shipping? Direct ba sa sparkfun ka bumili? Malamang mahal shipping ksi galing pa colorado.

Offline marcelino

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6016
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: AVR projects
« Reply #12 on: September 18, 2008, 04:03:16 PM »
mura na nga, how about shipping? Direct ba sa sparkfun ka bumili? Malamang mahal shipping ksi galing pa colorado.

$27... usually, kasi di lang naman yan ang binibili ko pag nag-oorder ako. kung sakali, yung 60mW na ang piliin mo para siguradong malayo.
dun na din ako bumili ng breakoutboards pati na yung tinatawag nilang xbee explorer. FTDI based serial interface. ginagamit ko during configuration ng xbee mismo.

magkano ba ang bluetooth sa e-gizmo?
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline maldihtah13

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4670
  • Pogi/Ganda Points: 120
  • Gender: Female
  • Everyday is a learning process so try to learn ;D
    • Blogspot
Re: AVR projects
« Reply #13 on: September 18, 2008, 04:13:14 PM »
$27... usually, kasi di lang naman yan ang binibili ko pag nag-oorder ako. kung sakali, yung 60mW na ang piliin mo para siguradong malayo.
dun na din ako bumili ng breakoutboards pati na yung tinatawag nilang xbee explorer. FTDI based serial interface. ginagamit ko during configuration ng xbee mismo.

magkano ba ang bluetooth sa e-gizmo?

hindi ka ba umorder sa mga asian distributor? sa e-gizmo 2300 yata pero kay zeroing 1500 lang yata IIRC.

Offline marcelino

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6016
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: AVR projects
« Reply #14 on: September 19, 2008, 11:13:26 AM »
hindi ka ba umorder sa mga asian distributor? sa e-gizmo 2300 yata pero kay zeroing 1500 lang yata IIRC.

nag-oorder din naman... kaso yang particular part na yan, mahal sa distributor sa asia. nasa 1700 ang isa sa farnell, yung 1mW version lang yun. sa ngayon, di ko pa natatry sa hongkong or singapore. alam ko, mura din dun.
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline ATE

  • Size C Battery
  • *****
  • Posts: 225
  • Pogi/Ganda Points: 12
  • -.-
    • Volts and Bytes
Re: AVR projects
« Reply #15 on: September 20, 2008, 09:03:32 PM »
I am also working on a similar project. kaso nga lang i am using PICmicro and zigbee ang wireless interface ko. it is also interface onstandard rs232.
for now, i am having second thought on my designs regarding the conditioning circuits of the sensor...  ano ba yung resistive sensor na gagamitin mo? nagtaka lang kasi ako sa circuit mo, kasi karamihan na resistive humidity sensors required ac supply. yung akin hs15sp, requires not greater than 1V ac signal. yung pulse or squarewave ok lang.

good luck to your project;D

pwede mo bang i-post yung conditioning circuit mo?

Offline Dandy

  • Lead Acid Battery
  • *******
  • Posts: 726
  • Pogi/Ganda Points: 31
Re: AVR projects
« Reply #16 on: June 25, 2009, 12:13:16 PM »
Hello, any further developed sa project? 

Magawa nga din iyan using 8051 MCU, still have some old chips, gigisingin ko, tagal na natutulog.  Sana ATMEGA8515 o ATMEGA162 nalang para pin-compatible siya sa 40 pins 8051.   

Ano RF range in meter?   Puwede ata iyong mga 315 o 433 MHz module for low speed data.

Philippine Electronics Forum

Re: AVR projects
« Reply #16 on: June 25, 2009, 12:13:16 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com