WiFi experiments with ATtiny microcontrollers
posted Feb 7th 2012 1:01pm by Mike Szczysfiled under: Microcontrollers

[Quinn Dunki] got some free stuff from Element14 to evaluate, including this Mircrochip WiFi module. It’s been used as the centerpiece of an Arduino shield in the past, and she grabbed a copy of that library to see if it would play nicely with an ATtiny chip. What follows is a struggle to de-Arduino the code so that it’s portable for all AVR controllers.
This module is one of the least expensive ways to add WiFi to a project, coming in at around $23. But it’s not really an all-in-one solution as there’s still a huge software hurdle to cross. The hardware provides access to to radio functions needed to communicate with the network, but you need to supply the TCP/IP stack and everything that supports it. Hence the re-use of the Arduino library.
Battling adversity [Quinn] fought the good fight with this one. Switching from an ATtiny to the ATmega168, compiling more code, and troubleshooting the process. She used a single LED as feedback, and can get some connectivity with her hotspot. But to this point she hasn’t gotten everything up and running.
We’re hot for an AVR WiFi solution that is cheap and easy to use. But as we see here, the software is complex and perhaps best left up to beefier hardware like the ARM controllers. What do you think?






I’ve been looking at modules like this one and the Gainspan GS1011.
My question is…does anybody know of a way to run a ‘low-power’ web server? What I mean by that is have a device serving up web pages and then put itself to sleep when there is no activity. But how do you get the client to wake up the server if the server is ‘sleeping’? Wake up the server with a timer? That seems too ‘synchronous’ to me, what if there is a request made in the sleeping ‘timeslot’?
Damn, alot of this sounds like gibberish. Hopefully someone can grasp WTF i’m talking about.