Want to free your pcDuino from the oppression of wired networking? This USB Wifi dongle has been tested to work with the pcDuino, simply plug it into the USB port and you're ready to connect to a nearby wireless network!
Note: We've found that this also works well with the BeagleBone Black as well as the Raspberry Pi!
If it requires power, you need to know how much, what all the pins do, and how to hook it up. You may need to reference datasheets, schematics, and know the ins and outs of electronics.
Skill Level: Noob - You don't need to reference a datasheet, but you will need to know basic power requirements.
See all skill levels
No reviews yet.
Looking for answers to technical questions?
We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.
Log in or register to post comments.
I got this working with the BeagleBone Black after following following the instructions from Adafruit . Depending on the location in my house though the latency can be high, like 600ms! but sometimes it's really good. I did have to disable the HDMI connector as in the link and I also had to update the kernel and use the script provided in the link. Then it just worked!
If I am readin the model number correctly that chip says Ralink RT5370.
A few google searches with that model number say that this should also work with a raspberry pi. Unless I am missing something?
Yes - does it work with Raspberry Pi? What is current requirement?
Still working on getting it working with "Raspbian GNU/Linux 7". It might be a power thing, my power supply is rated at 700 ma and the Wifi might need more power. It associates OK, gets an IP address OK, then immediately disconnects. This process repeats itself over and over. Also FWIW wpa_supplicant requires you to broadcast your SSID (there may be a workaround):
[code] Sep 25 23:03:30 pi-w wpa_action: creating sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid Sep 25 23:03:30 pi-w wpa_action: bssid=00:21:29:a9:39:b7 Sep 25 23:03:30 pi-w wpa_action: ssid=NSAMONITORINGSTATION Sep 25 23:03:30 pi-w wpa_action: id=0 Sep 25 23:03:30 pi-w wpa_action: mode=station Sep 25 23:03:30 pi-w wpa_action: pairwise_cipher=TKIP Sep 25 23:03:30 pi-w wpa_action: group_cipher=TKIP Sep 25 23:03:30 pi-w wpa_action: key_mgmt=WPA2-PSK Sep 25 23:03:30 pi-w wpa_action: wpa_state=COMPLETED Sep 25 23:03:30 pi-w wpa_action: ip_address=192.168.1.106 Sep 25 23:03:30 pi-w wpa_action: address=00:c3:16:a0:c3:ce Sep 25 23:03:30 pi-w wpa_action: WPA_IFACE=wlan0 WPA_ACTION=DISCONNECTED [/code]
Looks like it was just a matter of signal strength - where my laptop was reporting about -70 dB signal strength, the dongle was reporting over -90. It has a little dinky antenna, so reduced range is expected.
Could this be wired up to an Arduino?
In comparison to the Arduino Wi-Fi Shield this thing is really cheap if you don't need the micro SD slot.
It's possible in the same vein that a lot of things are possible, but it wouldn't be easy.
PC's (including the PCDuino, Raspberry Pi, etc.) are USB "hosts", and run the complex driver software that makes things like this WiFi dongle work. Everything else are "devices", including the Arduino. So it's kind of like plugging a "device" into a "device" - in general it doesn't work out.
The fine print is that in some cases, the Arduino can act like a "host", using special software tricks (like the 32U4 and other USB-agile Arduinos being able to both emulate and host keyboards, mice, joysticks, etc.), or plugging in a Host Shield, for which some people have written sketches to control very specific devices. If someone has written a USB host sketch that supports this specific dongle chipset (there are a lot of them out there) then yes it could work. But other than that, one of the shields or the Electric Imp, though more expensive, is the easier way to go.
EDIT: fixed Arduino host example
Thanks for the info.
According to the people on the other end of the Projects and code link that you provide on your Host Shield product page; "Future plans include development drivers for communication devices, such as WiFi and cell phones, and support for other USB Host controllers."
This is great!
They mention a "USB Host Mini" which would be perfect for my application. Will you be selling these eventually?
Also, would you please tell us the "specific dongle chipset" as it is hard to read the chip name in the product pictures.
Ummm... "PC's (including the PCDuino, Raspberry PI, etc.)..." Yeah, these are not PCs, they're both ARMs. PCs use the x86 or x86_64 architecture, and these don't.
Sounds like you're confusing USB hosts and USB devices, too. A keyboard or mouse is still a guest device, not a host. What am I missing?
Despite the "PC vs. Mac" ads, PC still stands for Personal Computer, and it is used to differentiate between machines that run full operating systems and have significant resources vs. microcontrollers that don't. From Wikipedia: "Personal computer, a computer whose original sales price, size, and capabilities make it useful for individuals. Commonly running either Windows, OS X or Linux." The important thing here is that while you may be able to host certain simple USB devices with a microcontroller, it's much more difficult to host complex or arbitrary devices given the limited resources of a microcontroller.
And you're right that I didn't state the keyboard/mouse example correctly (sorry, we're busy here!), I'll edit it as soon as I get to a PC.
You're right. Sorry.
Not really, you need a USB driver and an Ethernet (and probably IP and TCP/USB) protocol stack, which would not be likely to fit in an Arduino (maybe a Mega).
The Arduino Wifi shields are expensive because the TCPIP stack is offloaded to the shield (it probbaly lives on the Wifi module itself, like the Wifly GSX module), so all the Arduino has to do is exchange serial data with the shield. The shield then takes care of the rest.
If you have a usb host shield or Arduino ADK, you could test the dongle with the usb library https://github.com/felis/USB_Host_Shield_2.0 Supposedly there's wifi support in there
How much current does this draw?
It draws 200 mA in its peak use.
USB ports only provide 500mA (chargers for phones might do more) so don't expect to ever get more than that. 200mA sounds much closer to being accurate.
That makes much more sense!
I was truely making guesses based on other hardware. I was only like 500mA off... (and that's how the fire started)
USB usually draws 5V at around 1amp. the Asus wifi adapter I had drew about 0.7 amps. don't know about this one though
An amp? That's a lot for a little wifi adapter! I was expecting 500 mAh most especially since it was made for the pcDuino
Can this work with any PC? My dad was looking for one for one of our computers, but all I could find was in the $40+ range.
You can find some good quality mini USB WiFi adapters for ~$15 on Amazon. If you want to get one with an external antenna (much greater range and speeds) they aren't much more.
Try Dx.com, type wifi usb2, they have heaps much cheaper, but read the reviews first (or look at reviews stats) and decide based on those if you want to buy there.
@cyclicredundancy - Farnell has one cheap specifically for the Pi for about $22 with a case.
Yeah it should be able to, but if you want cheaper with pretty good range, look up mini wifi adapters -here-
What is the wifi range on this?
I found a data sheet for this thing if anyone's interested!
This Dongle works in android?
Is there a tutorial or datasheet on this?
I took a gamble and ordered two of these, for my Raspberry Pi's. Under Raspian, there's the wifi config tool on the desktop. I used that to configure and it worked immediately with my Apple Airports. So, as far as Raspberry Pi's are concerned, these wifi adapters would seem to work out of the box. The signal strength doesn't seem so great, but it works well enough for me. More importantly, it seems stable. I was a bit concerned the Pi's USB ports wouldn't source enough current, but since it's stable, I think it's fine. I guess it could crap out during a massive file transfer or something and possibly warrant running off of a powered hub, but I haven't needed one yet.
I would like to know about features of this dongle. It's support IEEE 802.11 b/g/n standards?
Thanks in advance
I wonder if there is a way of getting something like this (or another WiFi Dongle) to work with a IOIO board with minimal or no modifications to the IOIO firmware. Any ideas?
Be sure to pick up a heatsink for this at the same time -- mine didn't work reliably without one. It works great now, though.
What is the range on this dongle?
I have setup the wireless connection just like in the sparkfun tutorial but in the Wireless Network status menu it just says 'device not ready.'
If I plug the dongle in I see this in dmesg
[ 1629.230000] Error! The chip does not support 5G band 15!
[ 1629.580000] RTMPSetPhyMode: channel is out of range, use first channel=1
[ 1629.590000] (Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
[ 1629.670000] !!! rt28xx Initialized fail !!!
[ 1629.680000] (Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
[ 1629.680000] NICLoadFirmware: firmware loaded already
[ 1629.680000] MacReg = f80, isMCUnotReady
[ 1629.680000] -->RTUSBVenderReset
[ 1629.680000] Error! The chip does not support 5G band 15!
[ 1630.030000] RTMPSetPhyMode: channel is out of range, use first channel=1
[ 1630.030000] (Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
[ 1630.110000] !!! rt28xx Initialized fail !!!
[ 1630.110000] (Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
[ 1630.110000] NICLoadFirmware: firmware loaded already
[ 1630.110000] MacReg = f80, isMCUnotReady
[ 1630.120000] -->RTUSBVenderReset
[ 1630.120000] Error! The chip does not support 5G band 15!
[ 1630.490000] RTMPSetPhyMode: channel is out of range, use first channel=1
[ 1630.490000] (Efuse for 3062/3562/3572) Size=0x2d [2d0-2fc]
[ 1630.580000] !!! rt28xx Initialized fail !!!
I would give you the same suggestions as above.
an you check your OS version? $ cat /proc/version If it is the latest 3.4.x, there is the patch that can fix the WiFi issuer here. Please check http://www.pcduino.com/?page_id=14 Find: WiFi Patch for 04-04-2013 release, Release Note. Note: Fix the WiFi issue for pcDuino WiFi dongle.
Does anyone actually have this working? When I plug mine in, whether or not I bring up the wlan0 interface, I get the following log entries in dmesg every few seconds
Can you check your OS version? $ cat /proc/version
If it is the latest 3.4.x, there is the patch that can fix the WiFi issuer here. Please check http://www.pcduino.com/?page_id=14
Find: WiFi Patch for 04-04-2013 release, Release Note. Note: Fix the WiFi issue for pcDuino WiFi dongle.
I have the dongle working, but I still get the two messages shown above every 8 to 12 seconds. I looked at the page referenced with the patch and didn't see the link referenced for the rt5370sta.ko module. But, looking at my system, that is the module that is loaded and running. I have some other pcDuinos that came with the ASUS N13 dongles. They work fine and no error messages.
Hey can we hook this guy up with an external 9dBi antenna (like this one: ?http://www.amazon.com/2-4GHz-9dbi-Rubber-RP-SMA-Antenna/dp/B0044DX59M/ref=sr_1_4?ie=UTF8&qid=1362446888&sr=8-4&keywords=9dBi+RP-SMA+antenna+d-link
Do you also carry the connector/adaptor for the antenna and where do we need to solder on the wifi dongle to hook it up? Thanks!
The dongle has the on board antenna. If you want to go with external antenna, you need modify the PCB to disconnect the internal antenna besides soldering the SMA socket.
It would be nice if you carried clear heat-shrink tubing in a size that could be shrunk around the PCB on this. Like the food-safe stuff Adafruit carries but a little wider. example
Does it do N-style networking