arduino ng

Postings related to the second version of the WiShield

arduino ng

Postby psc » Sun Aug 29, 2010 8:50 pm

i got my wishield 2.0, but i just realized that i have an arduino ng (with an atmega168). there's 2 pins that are left unconnect: rst, 3v3. would it be possible to make an hack to make it work with this arduino model? like the 3v3 needs a... 3v3?

thanks!
psc
 
Posts: 7
Joined: Sun Aug 29, 2010 8:43 pm

Re: arduino ng

Postby GregEigsti » Sun Aug 29, 2010 10:01 pm

Go look at the schematics on the wiki; may not be convenient but is probably doable. The 168 has less memory than the 328 so you'll have to be code/data size conscious.
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: arduino ng

Postby psc » Sun Aug 29, 2010 10:54 pm

Hi,

From what i see in the schematic the wishield is powered from the 5v, so the 2 unconnected pins (rst, 3v3) is not a problem. What do i need to look then: is it a software modification or an hardware modification. For the mcu, i can compile wiserver for atmega168.

Pat
psc
 
Posts: 7
Joined: Sun Aug 29, 2010 8:43 pm

Re: arduino ng

Postby GregEigsti » Mon Aug 30, 2010 12:24 pm

As long as your processor board runs and acts like an Arduino then no software changes should be necessary (unless the cpu clock is different - then you may need to tweak things). I am completely unfamiliar with your board so don't have much in the way of helpful info...

Greg
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: arduino ng

Postby psc » Mon Aug 30, 2010 8:35 pm

Hi Greg,

Are you the "author" of WiShield 2.0?

CPU is 16Mhz on the arduino ng.

http://arduino.cc/en/uploads/Main/ardui ... ematic.png
http://arduino.cc/en/uploads/Main/ardui ... ematic.pdf

i don't see any hardware difference for the SPI part. the only thing i see, there's a LED on pin 13 with a resistor in serie (470). maybe that's the problem, when i power up the wishield, i can see this surface mount led a bit bright?

pat
psc
 
Posts: 7
Joined: Sun Aug 29, 2010 8:43 pm

Re: arduino ng

Postby mengineer » Mon Aug 30, 2010 9:15 pm

Sorry I don't have anything informative or helpful to add here, but wow Greg. So many people think, or have asked if, your the "creator" or employee of Async_Labs the guys should :arrow: just give you a part time job as tech support, customer service, programmer, or something. I think your probably the main contributor to this forum, being as active as you are, in EVERY discussion and sharing whatever knowledge or experience you have. Keep it up, never know when it'll help out.
"Every day's a new adventure, you gotta take what you can!"
mengineer
 
Posts: 22
Joined: Mon Apr 12, 2010 8:49 pm
Location: Buffalo, NY

Re: arduino ng

Postby GregEigsti » Mon Aug 30, 2010 9:23 pm

Its like a bad habit :lol:

Looks like the Duelimanove and the NG are both running at 16mhz so that should not be an issue for you; the LED/pin 13 circuit looks a little funky but should not be a problem. Looks like SCK is also tied to one of the ICSP pins, hmmm.

Don't rightly know, I'm more of a software guy than EE. Looks like it should work, I guess, maybe ;) Have not taken the time to really check out all of the schematics, etc.

Greg
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: arduino ng

Postby psc » Tue Aug 31, 2010 12:32 am

Hi Greg!

Woah, thank you so much for taking the time to reply...
async_labs people, do you have an idea of the problem?

anything will help, cause right now i cannot understand why it's not working. what should i look for, is it an hardware problem or a software adjustment to do?

pat
psc
 
Posts: 7
Joined: Sun Aug 29, 2010 8:43 pm

Re: arduino ng

Postby GregEigsti » Tue Aug 31, 2010 7:30 am

So as I see it... :roll:

The NG is a variable so it would be interesting to try to prove/disprove it as viable.
1) Do you have access to a Duemilanove to try to see if your code/WiShield is working in a known/acceptable setup?
2) Do you have access to a different SPI device device device to verify that SPI works on the NG? (Its layout was changed for a reason)

An answer to one, or both, of these questions would be enlightening.

Edit - This thread indicates that the NG had SPI problems and the changes to pin 13's layout were made to address this problem. So the answer to #1 would quite interesting. You can get a Duemilanove for about $30 and that should get SPI working (fingers crossed) as well as get you a more capable processor...

Greg
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: arduino ng

Postby psc » Tue Aug 31, 2010 9:16 am

Greg,

I am almost sure that you found the problem! 1000x thx! I lend the WiShield 2 to someone that will try it with his arduino duemilanove, if it is working (it should), then i will do this simple hack on my arduino ng and report back.

Again, thank you very much, it is really appreciated.
pat
psc
 
Posts: 7
Joined: Sun Aug 29, 2010 8:43 pm

Next

Return to WiShield 2.0

Who is online

Users browsing this forum: No registered users and 1 guest