Author Topic: Oak Pinouts - GPIO to Oak pin mappings  (Read 3152 times)

bnovaz

  • Newbie
  • *
  • Posts: 5
Oak Pinouts - GPIO to Oak pin mappings
« on: March 28, 2016, 04:14:14 pm »
Is there a Oak pinout diagram that shows how the Oak pins map to GPIO pins.  For instance, I think that GPIO-1 maps to Oak pin D4 and GPIO-3 maps to Oak D3.  Some of the libraries only refer to GPIO pin numbers and I need to know what the pin numbers are on the Oak.

I would like to use the function Serial.swap which swaps serial TX & RX from pins GPIO-1 & GPIO-3 to GPIO-15 & GPIO-13.  I can't find a chart or diagram that shows what Oak pins that GPIO-13 & GPIO-15 map to.


exeng

  • Sr. Member
  • ****
  • Posts: 454
Re: Oak Pinouts - GPIO to Oak pin mappings
« Reply #1 on: March 28, 2016, 05:46:35 pm »
Should be able to find the pin to gpio mapping here... https://github.com/digistump/OakCore/blob/master/variants/oak/pins_arduino.h

bnovaz

  • Newbie
  • *
  • Posts: 5
Re: Oak Pinouts - GPIO to Oak pin mappings
« Reply #2 on: March 28, 2016, 07:53:26 pm »
Perfect - Thanks very much.


exeng

  • Sr. Member
  • ****
  • Posts: 454
Re: Oak Pinouts - GPIO to Oak pin mappings
« Reply #3 on: March 28, 2016, 08:09:10 pm »
Don't know if this will cause you any grief but certain pins cannot be pulled low or high at boot. Notes on this can be found here...http://digistump.com/wiki/oak/tutorials/pinout

bnovaz

  • Newbie
  • *
  • Posts: 5
Re: Oak Pinouts - GPIO to Oak pin mappings
« Reply #4 on: March 29, 2016, 09:31:15 am »
exeng - Thanks again.

I have a Nextion display attached to the Oak.  I send stuff to show on the display via MQTT.  With the Nextion connected to the 'normal' TX and RX pins (4 & 3), the Oak would not connect to Wifi (or perhaps not even boot - I'm not sure what was going on).  If I pulled the wire connected to the TX pin (4) - the Oak would boot and connect OK.

I've now switched to using Oak pins 6 & 7 (TX & RX) via Serial.swap().  Everything seems to be working OK.