# Pins of Wifi Shield is NOT able to directly plugged into Cam M7 ?

**URL:** <https://forums.openmv.io/t/pins-of-wifi-shield-is-not-able-to-directly-plugged-into-cam-m7/878>\
**Category:** OpenMV Boards\
**Created:** [September 6, 2018, 3:42am UTC](https://forums.openmv.io/t/pins-of-wifi-shield-is-not-able-to-directly-plugged-into-cam-m7/878 "2018-09-06T03:42:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiapei100](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/jiapei100/32/14_2.png) [@jiapei100](https://forums.openmv.io/u/jiapei100)\
**Post date:** [September 6, 2018, 3:42am UTC](https://forums.openmv.io/t/pins-of-wifi-shield-is-not-able-to-directly-plugged-into-cam-m7/878/1 "2018-09-06T03:42:29Z")

</div>

It looks like you redefined pins on Cam M7, but the Wifi Shield is too OLD?

- pin sequence on cam M7:  
GND-VIN-P7-P8-P9-SYN-BOOT-RST
- pin sequence on Wifi:  
GND-VCC-P7-P8-RST-BOOT-SWD-SWC

Any updated Wifi module?

I’m testing on my own wiring…

Cheers  
Pei

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [September 6, 2018, 4:47am UTC](https://forums.openmv.io/t/pins-of-wifi-shield-is-not-able-to-directly-plugged-into-cam-m7/878/2 "2018-09-06T04:47:45Z")

</div>

The upper pins on the wifi shield aren’t connected to anything so it doesn’t matter.

---

<div class="post-metadata">

**Author:** ![jiapei100](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/jiapei100/32/14_2.png) [@jiapei100](https://forums.openmv.io/u/jiapei100)\
**Post date:** [September 6, 2018, 6:18am UTC](https://forums.openmv.io/t/pins-of-wifi-shield-is-not-able-to-directly-plugged-into-cam-m7/878/3 "2018-09-06T06:18:25Z")

</div>

Great to know that…

However, I still have an issue: How to test network?

I strictly followed [network — network configuration — MicroPython 1.19.1 documentation](https://docs.micropython.org/en/latest/esp8266/library/network.html#class-wlan), the code is:

```python
import network
nic = network.Driver(...)

```

But, I failed to with the followingn ERROR message:

```python
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Driver'

```

Does **OpenMV** be fully compatible with MicroPython?  
  
  
Cheers  
Pei

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [September 6, 2018, 10:45pm UTC](https://forums.openmv.io/t/pins-of-wifi-shield-is-not-able-to-directly-plugged-into-cam-m7/878/4 "2018-09-06T22:45:55Z")

</div>

Have you tried using our WiFi scripts under Examples → Wifi Shield?

---

<div class="post-metadata">

**Author:** ![jiapei100](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/jiapei100/32/14_2.png) [@jiapei100](https://forums.openmv.io/u/jiapei100)\
**Post date:** [September 7, 2018, 6:54am UTC](https://forums.openmv.io/t/pins-of-wifi-shield-is-not-able-to-directly-plugged-into-cam-m7/878/5 "2018-09-07T06:54:17Z")

</div>

Great !! Thank you !! It’s working NOW…

```python
Trying to connect... (may take a while)...
Running in Station mode...
[-54, 2, 'SHAW-xxxxxx', 'f8:f0:05:a1:b9:ce', '192.168.0.8']
MicroPython v1.9.4-4510-g23e8457de on 2018-06-29; OPENMV3 with STM32F765
Type "help()" for more information.
>>>

```

Is the IP address fixed to 192.168.0.8?

How can I set a static IP for OpenMV ?  
  
  
Cheers  
Pei

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [September 7, 2018, 4:17pm UTC](https://forums.openmv.io/t/pins-of-wifi-shield-is-not-able-to-directly-plugged-into-cam-m7/878/6 "2018-09-07T16:17:20Z")

</div>

The IP address is given out by the DHCP server on your Network. If you use AP mode the IP will be static.

---

<div class="post-metadata">

**Author:** ![jiapei100](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/jiapei100/32/14_2.png) [@jiapei100](https://forums.openmv.io/u/jiapei100)\
**Post date:** [September 7, 2018, 6:28pm UTC](https://forums.openmv.io/t/pins-of-wifi-shield-is-not-able-to-directly-plugged-into-cam-m7/878/7 "2018-09-07T18:28:37Z")

</div>

That might happen. I’ve got 2 routers, both using the same SSID name.  
The master one is a bit far, that is why I’m using the 2nd one as AP.  
There is a possibility that OpenMV’s Wifi is ONLY able to find the 2nd router ??

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [September 7, 2018, 6:36pm UTC](https://forums.openmv.io/t/pins-of-wifi-shield-is-not-able-to-directly-plugged-into-cam-m7/878/8 "2018-09-07T18:36:25Z")

</div>

Hi, you should edit your routers config to assign the OpenMV Cam the same IP address based on the OpenMV Cam’s MAC address.

---

<div class="post-metadata">

**Author:** ![jiapei100](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/jiapei100/32/14_2.png) [@jiapei100](https://forums.openmv.io/u/jiapei100)\
**Post date:** [September 7, 2018, 8:00pm UTC](https://forums.openmv.io/t/pins-of-wifi-shield-is-not-able-to-directly-plugged-into-cam-m7/878/9 "2018-09-07T20:00:16Z")

</div>

I actually have already done that on my master(1st) router for OpenMV.  
But, it seems that doesn’t help on the 2nd router (AP)…

Should I reboot both of my routers as well, because I’ve already reboot OpenMV multiple times, and it’s always assigned the IP: **192.168.0.8**  
  
  
Cheers  
Pei

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [September 7, 2018, 8:06pm UTC](https://forums.openmv.io/t/pins-of-wifi-shield-is-not-able-to-directly-plugged-into-cam-m7/878/10 "2018-09-07T20:06:43Z")

</div>

The OpenMV Cam has no control over it’s IP address assignment. So, you have to go into your routers to make it static.
