3
\$\begingroup\$

I want to develop a product to make Wi-Fi to connect PC <-> MCU <-> MCU. I started looking for Wi-Fi modules with the stack that I need already implemented and some kind of AT commands interface in order to configure it, but those are a bit expensive.

Next idea it's to use a 2.4Ghz transceiver and a MCU with the stacks implemented. That will be a lot cheaper, but I don't know where to start.

My goal it's too have this module connected to something (an analog sensor, a remote UART, whatever) and, by sending a command over my PC or another MCU, get the data present in the sensor.

Could ypu help me through the first steps? I'm worried about the stack to choose.

EDIT

I don't know if I can do this here, but I've found Carambola a few months ago and right now they have an even cheaper module, the Carambola 2, I guess that it's a good module for projects that require Wi-Fi.

\$\endgroup\$

3 Answers 3

4
\$\begingroup\$

I've had this problem occasionally. As you say, the "ready to go" WiFi modules are expensive and usually very limited in what they let you do. Most try to do too much, like give you a UART interface to a single TCP stream. That's fine if that's all you want, but I usually have multiple TCP servers or clients, or need more out of band control than what a dumb stream gives me.

What you want is a WiFi module that interfaces at the raw network packet transport layer instead of higher level protocols. This is sortof like the MAC layer for wired ethernet. Now you can run your own network stack and do whatever you want above that.

We have done exactly this with the Microchip ZeroG WiFi modules. We implemented a ZeroG packet layer driver in our PIC 18 network stack. The rest of the stack doesn't know how packet I/O is performed, so you can set up all the TCP, UDP and other connections as you want.

The source code for our network stack is included in the free PIC Development Tools release at http://www.embedinc.com/pic/dload.htm. Of course the stack exists within the context of our firmware framework, but using all that is a good idea anyway. All the stuff I've mentioned here is available for free.

\$\endgroup\$
2
  • \$\begingroup\$ I already used Microchip Wi-Fi modules, but I'm looking for something cheaper. I've found Ralink, they make WI-Fi USB chipset used in most of the cheaper Wi-Fi USB dongles on eBay, but I can't find any information about that. \$\endgroup\$
    – rnunes
    Commented Jul 16, 2011 at 15:45
  • \$\begingroup\$ @rnunes: Cheaper than $27 in small quantities for a fully certified WiFi module!? Lower for really high quantities, but you have to talk to Microchip about that. Note that a chip set can't be pre-certified to FCC compliance, so get ready for a lot of hassle and expense and special expertise required if you go that route. \$\endgroup\$ Commented Jul 16, 2011 at 17:02
3
\$\begingroup\$

It seems to me that WiFi is a little overkill for this kind of application.

I have recently done a very similar thing using:

  1. A PIC MCU on USB linked to the computer.
  2. An ISM 868MHz transceiver (SPI) on the PIC.
  3. Another PIC remotely with the sensors.
  4. An ISM 868MHz transceiver (SPI) on that PIC too.

The two PICs communicate over the ISM band using a simple serial protocol. It's far simpler to implement with a small microcontroller. Not as fast as WiFi, but for the small amounts of data we're talking here that really doesn't matter.

The ISM transceiver I used is the MRF49XA from Microchip. Cheap, and doesn't require much extra hardware.

\$\endgroup\$
1
  • 3
    \$\begingroup\$ I already used that too, and MRF89XA, but what I want here it's something that could be accessed remotely if that space have a Wi-Fi connection and a solution that doesn't require any new hardware for the computerin order to listen to it. \$\endgroup\$
    – rnunes
    Commented Jul 15, 2011 at 23:10
1
\$\begingroup\$

I'm going to echo my answer from this question. If you've got no power or space limitations, you can just buy a WiFi router that can run Linux, and pull out some of its IO pins to do whatever you want (they've got at least a UART and some GPIO). I'm pretty sure you still can't get a microcontroller + WiFi module for less than a prepackaged WRT54GL, which has all the bugs worked out, and a metric pile more CPU power than you're going to get from a PIC or Arduino.

\$\endgroup\$
2
  • \$\begingroup\$ check the edit of my answer, that MCU+Wi-Fi transceiver it's pretty cheap (I think it's the cheapest option right now if you want to put Wi-Fi in a small quantity project) \$\endgroup\$
    – rnunes
    Commented Apr 4, 2013 at 9:59
  • \$\begingroup\$ that's currently half the price of a WRT54GL, and doesn't come with power, antennas, enclosure or product history. so depending on what you want to do exactly, it could still be a toss up. \$\endgroup\$ Commented Apr 4, 2013 at 18:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.