two way wireless communication between three atmega328p

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

Hi everyone,

 

Im building some sort of alarm with central unit, remote controller and speaker, each with 328p, commnicating via UART. Now i would like to make them communicate wirelessly, so any suggestions on simple UART to wifi modules, no need to connect to internet, just communication between central unit, remote control and speaker.

 

Control unit is with sensor, remote is used to select "alarm" or "off" mode, and speaker is buzzer that alarms. TY in advance

 

Sorry if topic is double

Last Edited: Fri. Oct 16, 2015 - 12:29 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Take a look at Nordic rf201(I think that's the part number). You can get them on eBay for very reasonable cost. They use SPI to communicate with the AVR

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

Do you really want WiFi ??

 

Quote:
Take a look at Nordic rf201

 

Since this is an Atmel forum, shouldn't we be recommending AT86RF233 and the LightwieghtMesh stack...?

 

http://www.atmel.com/devices/at8...

http://www.atmel.com/devices/at8...

 

http://www.atmel.com/tools/light...

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Doesnt have to be a wifi, i just need two way wireless communication, range no biger than 30 m.

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

Definitely look at the Lightwieght Mesh, then.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Since this is an Atmel forum, shouldn't we be recommending AT86RF233 and the LightwieghtMesh stack...?

we could, yes.  althpough I am not sure that the 328 has enough to run the LWmesh and the OP's application.

 

The nordic parts have been discussed here extensively so it was an easy recommend

 

Jim

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:
we could, yes.  althpough I am not sure that the 328 has enough to run the LWmesh and the OP's application.
The µracoli radio library appears to have a network capability; µracoli can run on a tiny84.

uracoli logo

http://www.nongnu.org/uracoli/

http://hg.savannah.gnu.org/hgweb/uracoli/file/db5de1c82e07/Appnotes/SensorNWK/SensorNWK.asciidoc 

"Dare to be naïve." - Buckminster Fuller

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

As far as I can see from datasheet I can use ATmega128RFA1 witch has integrated transreciever, anyone has experience with this one?

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

luke_flywalker wrote:
so any suggestions on simple UART to wifi modules, ...
Though not wifi there's RF Digital modules that are UART 9600bps to 2.4GHz; more expensive than an nRF module.

There is/was an Arduino shield that has that RF module.

http://www.shatteredhaven.com/2013/01/1400365-arduino-powered-wireless.html via a search on "OpenSource RF".

http://www.rfdigital.com/


Mouser Electronics

Home » NEWEST Products » New by Manufacturer » RF Digital » RF Digital RFD21815 Open Source Wireless Inventors Shield for Arduino

http://www.mouser.com/new/rfdigital/rfdigital-RFD21815/

Edit : Corrected Arduino part.

"Dare to be naïve." - Buckminster Fuller

Last Edited: Tue. Mar 10, 2015 - 10:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

luke_flywalker wrote:
ATmega128RFA1 witch has integrated transreciever

I think the integrated transceiver is, in effect, an AT86RF233 - or one of its predecessors ?

 

But better integrated than the SAM R21...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

luke_flywalker wrote:

As far as I can see from datasheet I can use ATmega128RFA1 witch has integrated transreciever, anyone has experience with this one?

 

What kind of experience do you need?

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

I AM A SPAMMER - IGNORE ANYTHING I SAY!

Last Edited: Wed. Apr 1, 2015 - 11:11 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use an xmega with a silabs si4463 @ 433MHz for my wireless comms.

 

Paul