Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Can I Stack wifi shield on df robot shield

dfrobot wifi np+2

Best Answer baxter, 05 August 2013 - 06:29 PM

The cheapest and in my opinion, the least painful way is to use a Edimax BR-6258n Nano pocket router. See post #5 to configure it,

http://forums.netdui...-a-pc-wireless/

I costs about $25 (sometimes $20 on sale) and fits perfectly on a proto-shield. I use a 6" flat cat5 patch cable to connect it to the Plus or Plus 2. Once configured and connected to your network it works transparently. Your Netduino is IP addressable just as if you were connected directly the network  with an ethernet cable; no drivers necessary.

Go to the full post


  • Please log in to reply
15 replies to this topic

#1 Dave1374

Dave1374

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 05 August 2013 - 05:08 PM

so I bought this motor shield.

 

got it working with my N+2

 

and now I'm looking to control the robot with a web site. The netduino will be used as a web server.

 

I want to make the robot wifi.

 

1 - Can I stack 2 shields on my N+2 ?

 

2 - Which wifi shield could I fit on my df robot motor shield ?

 

is there any on this site that fits ? http://www.robotshop...ino wifi shield

 

Also, I'd like to buy the cheapest possible ....

 

Thanks



#2 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 05 August 2013 - 06:29 PM   Best Answer

The cheapest and in my opinion, the least painful way is to use a Edimax BR-6258n Nano pocket router. See post #5 to configure it,

http://forums.netdui...-a-pc-wireless/

I costs about $25 (sometimes $20 on sale) and fits perfectly on a proto-shield. I use a 6" flat cat5 patch cable to connect it to the Plus or Plus 2. Once configured and connected to your network it works transparently. Your Netduino is IP addressable just as if you were connected directly the network  with an ethernet cable; no drivers necessary.



#3 Dave1374

Dave1374

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 06 August 2013 - 01:28 PM

Nice !

 

So just to make sure I understand it correctly, I'm going to fix that nano router on my robot and plug it in the ethernet port.

 

And I think you power it with http://www.amazon.co...y/dp/B000RDHBAW ?

 

Or do you have another suggestion for a battery ?

 

Also, I'm looking for a battery that will last longer than a square 9 volt standard rechargable battery.

 

That battery supply my netduino for like 40 minutes....

 

both batteries need to be cordless and as light weight as possible.

 

on a side note, my 4 motors are powered by a set of 5 AA batteries.

 

edit: so I found a battery that can supply two 5 volt devices, one at 1a and the other one at 2a

 

https://www.amazon.c...ASIN=B0067UPRQ4

 

https://www.amazon.c...ASIN=B00BQ5KHJW

 

Can I use that to power my netduino AND the nano router ?

 

edit: so i found another one that can supply 2x 5 volt 1a each.

 

http://www.amazon.ca...rds=anker astro

 

I should go with this one even if it has a much lower charge , right ?



#4 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 06 August 2013 - 07:31 PM

So just to make sure I understand it correctly, I'm going to fix that nano router on my robot and plug it in the ethernet port.

 

 

 

Yes, but make sure you configure the nano first so that it attaches to your router.

 

Regarding the battery, I have one similar (6600 mAh). These batteries are ubiquitous and the marketed capacity vs. the real capacity is questionable.  The RAVpower brand seems to be the most reliable in meeting advertised capacity.

 

I would use a boost converter for 9V and run off of your main battery if these 1A/2.1A mobile device chargers can supply enough current for your motors,

http://www.amazon.co...boost converter

Edit: wrong link, you want a boost step-up for 5V to 9V if you need 9V.

Here are  recent discussions about batteries and motors,

http://www.picaxefor...teries-question

http://www.picaxefor...Like-the-PicAxe



#5 Dave1374

Dave1374

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 07 August 2013 - 12:47 AM

well, the 5 AA batteries (motor ones) seems to last for a long time. 

 

It would be ok to me to power the netduino and the router with the same external battery pack.

 

Now my question is about the voltage of the 2 devices, the router needs 5 volt, and the netduino 7.5 to 9.

 

can i boost step up only the 2A output to 9 volt ?

 

so I use the 1A 5 volt in the router, and a 2A 9 volt to the netduino.

 

with that battery

 

https://www.amazon.c...ASIN=B00BQ5KHJW

 

edit: so there is this one http://www.ianker.co...9UN5V2-B16P100A

that can output 5 volt 2A and a 9 volt 2A

 

can I use that battery for the router even if it says 5 volts 1A



#6 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 07 August 2013 - 04:09 AM

Well, my battery puts out 5V at 1 or 2.1A depending on the port. Power supplied to the Plus2 (via USB) is 5v with current draw < 500mA. The current draw of the Nano is of the order of 300 mA (at 5V). It would seem that you could get a regular USB-to-micro cable, splice in another micro cable and power both the Nano and Plus 2 from the 1A battery port. The 2.1A port is then free for your motor requirements. I don't know where the 9V requirement comes from. All I was suggesting is that if you do in fact need 9V, you can get it with a boost up-converter between the 5V battery and your 9V device.

 

that's a nice battery you linked; a bit pricey, however.

 

Edit: actually, you can buy a micro USB y-cable,

http://cgi.ebay.com/...em=171096118154



#7 Dave1374

Dave1374

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 07 August 2013 - 06:06 PM

man thats so nice. I didnt think about the USB y-cable. The whole 9 volt thing is because I had in mind the netduino needed a 7.5 to 9 volt input. but with the micro usb, its 5 volt so were fine. the 9 volt thing is when you power it from the vin ( its called vin, right ?)

ok so im going to order this guy https://www.amazon.c...ASIN=B00D5T3QK4 ( only one left in stock, lol ... , if i cant im gonna go with the 13A)

 

as you said, im gonna order a usb y cable

 

 this Cable for External Hard Drive, Dual USB A to Micro B, geez they have only one left in stock of that too lol.

 

we plug a a USB A in the 5 volt 1A side of the battery, take the USB A and we plug it in the nano router, we take the micro B and we plug it in the netduino.

 

Then, we plug USB in the 2A plug, and somehow skin it to get off the positive and negative wires (yea?), and wire it in the DF Robot Shield.

 

the df robot shield says 

  • Motor Driven Voltage?6.5~12v(VIN Power Supply),4.8~35V (External Power Source)

and this is ok because we are setuped as an external power source, right?

 

edit:

http://www.extremete...your-smartphone

 

it says in this and some other web sites that the usb only output 500mA ?

but the battery says it outputs 2A ? how does this work ?



#8 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 07 August 2013 - 09:52 PM

[color=rgb(255,0,0);]No, that cable from Amazon is wrong[/color][color=rgb(0,0,0);].  You want a regular USB cable that splits into two micro USB connectors, one goes to the Netduino micro USB port, the other goes to the Nano micro USB port. I am pretty sure the Nano has a micro and not a mini USB, but you better check. Look at the USB Y-cable I linked.[/color]

 

it says in this and some other web sites that the usb only output 500mA ?

but the battery says it outputs 2A ? how does this work ?

 

A regular USB port on a computer can supply a maximum current of 500mA. This has nothing to do with your application. You are supplying 5V from the battery. The Netduino and Nano require 5V on their USB ports. They will draw whatever current they need and it will be less than 1A.



#9 Dave1374

Dave1374

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 08 August 2013 - 02:46 AM

ok good. 

 

well i thought it was usb because of this

 

  • [color=rgb(0,0,0);]Green It uses extremely low power, and can run completely wireless using power from an USB port. The included power adapter is optional.[/color]

 

  •  

but from here it says micro usb. (i think its another model tho but looks similar to the other)

http://www.newegg.ca...N82E16833315095

 

 

so I found that cable 

 

http://www.ebay.com/...=item5aec7ef999

 

it's a usb male to 2 micro usb.

 

the battery needs a usb male.

 

so I'm waiting for your confirmation that my setup is ok, and ill order all that stuff tomorrow.

 

the battery I had choose sold out today..... so... im going for the 13A I guess. I want it black, lol.

 

edit: btw, can you explain me what to do for my motor shield ?

 

im going to plug a usb in my battery 2A port, but the other end is the motor shield, and right now it's pluged as divided negative and positive wires.

 

so we're going to skin an usb cable, right? and 2 of them 4 wires in there are the positive and negative cables.



#10 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 08 August 2013 - 06:07 AM

Well, with the Nano you simply have two options for supplying power. It comes supplied with a regular USB male to micro male cable and a wall power adapter with a USB female. You can plug the cable into a PC USB port or into the wall adapter. The micro end plugs into the Nano. The Nano draws about 300mA so it is within the PC USB port spec. (e.g. can supply up to 500mA). So, with your micro terminated y-cable you are good to go. The 1A battery port can supply plenty of power for both the Netduino and the Nano. I ran the Nano for about 10 hours on a 6600 mAH battery.

 

Here is what I do to make a USB power cable for use with a phone or tablet charger to supply power to a breadboard or a female header:

 

(1) cut off one end of the cable (2) expose the wires (3) take red and black breadboard jumper wires and cut them to your required length (I use about 2") (4) solder the red to cable red and black to cable black (5) trim the other cable wires so no possibility of shorting (6) encase the solder joints with small diameter heat shrink tubing (7) finally, use a larger diameter heat shrink tube to cover a small portion of the cable and the heat shrinked joints for reinforcement.

 

I really can't give any advice on the motor shield.  i have never used one.  All I know is that if you use your modified cable it will deliver up to 2 mA at 5V from the battery port with red = +5V and black = gnd.



#11 Dave1374

Dave1374

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 08 August 2013 - 03:11 PM

so I placed the orders for the cable, the router and the battery.

 

they say I'll receive the router in 20-28 business days....... so yeah...

 

I'll give you some updates about how it goes when I have all the stuff.

 

Thanks for the shopping help dude.



#12 Dave1374

Dave1374

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 16 August 2013 - 05:12 PM

so I received the battery and the Y cable yesterday.

 

I plugged the netduino on the battery and it works just fine.

 

However, it seems to me that the 4 motors are going slower since I power them with the battery ( with the modified usb cable )

 

I used to power them with 5 AA batteries....



#13 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 16 August 2013 - 08:49 PM

Maybe your motors need 9V. You can try a step-up voltage regulator

http://www.pololu.co...og/product/2116



#14 Dave1374

Dave1374

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 02 September 2013 - 03:01 PM

I tryed to configure the edimax... but can't get it to work. 

 

I configured it with the pdf instructions but I think I should have entered an ip address at the end of the configuration, even if they didnt say it.

 

Now, I can't get back to the configure page. It looks like I can't reset it too ?

 

It's plugged into my pc, with the lan port, I try to get to the page with 192.168.2.1 ....

 

I also tryed to plug it into my router and access to the configure page but it didnt work.

 

edit: looks like i can reset it by holding the button 10 seconds. im gonna try that and see what happens.

 

Also, it says somewhere that clicking that "pressthis button forlessthan 10 secondsto activate

WPS function)" .... Could it be that when I pluged the router to my netduino, and put the power on, the netduino tryed to go to the web before the wps function was actived which caused my program to fail...
 
ninja edit: hm. by powering it via my pc instead of the same batterie as netduino, i finally got my netduino to ping my log web site. ( so the problem was indeed that my main program was trying to get to internet before the edimax was ready. )
 
I used to log the ip that my netduino acquired, but it says 0.0.0.0


#15 Dave1374

Dave1374

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 02 September 2013 - 05:37 PM

Got it working. :)

 

I think the problem is that the edimax takes a while before it's ready. looks like 10 seconds to me.

 

So by somehow powering the edimax before the netduino,

or you could add a while in the netduino's main.

or you also can start the whole thing, wait 10 seconds, then unplug and replug the netduino.

 

so yeah, now the robot is fully wireless and have power for like 10 hours with the new battery.

 

I'm still not sure about how to set up my fixed ip adress but ill look into that in the next days.

 

Thanks baxter.



#16 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 02 September 2013 - 07:25 PM

Start MFDeploy --> Target --> Configuration --> Network and set your fixed IP address there.







Also tagged with one or more of these keywords: dfrobot, wifi, np+2

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.