Which pins are being used by Pedalshield?

6 years 10 months ago #985 by BowDown
I want to connect an SPI OLED but i cannot figure which pins are being used already.

I consulted the classic pic on the forum and is what i understood accurate?

Guitar input ADC0 and ADC1. Are these pins labeled as A0 and A1 on the arduino?

pin2 TOGGLE
pin3 LED
pin7 FOOTSWITCH
pin8 POT
pin9 POT
pin10 POT

Are theses pins labeled as A2, A3, A7, A8, A9, A10 on the arduino?

This only leaves pins A4, A5, A6, A10, A11 to be used?

Can i use any other pins on the arduino board? If yes, which ones? Can the pins labeled as PWM be used?

Please Log in to join the conversation.

6 years 10 months ago #988 by ucfanrg
Can't you use the SPI port on the Arduino Due?
Or did you want to use Software SPI ?
The following user(s) said Thank You: BowDown

Please Log in to join the conversation.

6 years 10 months ago #989 by BowDown
Oh thanks!!!
YEah i can use hardware SPI! There is a constructor fora that on the library.
But a new question that arose is my oled has two pins that i dont know where to connect them. They are labeled CS and DC.
Maybe one of these go to the pin labeled as SCK on the DUE pins?

Please Log in to join the conversation.

6 years 10 months ago #990 by ucfanrg
CS pin :

CS pin (also called SS or NSS) is the "Chip Select" or "Slave Select" Pin. It is used when you have many SPI component on the same line. This pin can be any digital pin that you want (default is PIN 10 on the DUE).
CS pins are kept HIGH when the component is not in use. When you bring a component CS pin to LOW, it means that you want to talk to it.

On the Arduino Due, you initialize SPI like this :
  • SPI.begin();
Where you can put the number of your CS pin in the parenthesis. Like this (our cs pin is pin 4) :
  • SPI.begin(4);
Here's the example from the arduino website : www.arduino.cc/en/Reference/DueExtendedSPI

DC pin :
The DC pin is the "Data Control" pin and it is not part of the SPI protocol. Like the CS pin, you can choose any digital pin you want to attach to it. It is used to tell the OLED module if the data from the SPI is a command or some data.

So...
I don't know what library you are using, but chances are that you need to specify to the library what is the DC pin and the CS pin.

Please Log in to join the conversation.

6 years 10 months ago #991 by BowDown
Yes but what are the available pins on the DUE?

Guitar input ADC0 and ADC1. Are these pins labeled as A0 and A1 on the arduino?

pin2 TOGGLE
pin3 LED
pin7 FOOTSWITCH
pin8 POT
pin9 POT
pin10 POT

Are theses pins labeled as A2, A3, A7, A8, A9, A10 on the arduino?

This only leaves pins A4, A5, A6, A10, A11 to be used?

Please Log in to join the conversation.

6 years 10 months ago #992 by Ray
Hi there, the pins used are labelled on the Arduino DUE Board as:

DAC0
DAC1
A0
A1
A8
A9
A10
2
3
7

This image always helps:



Can i use any other pins on the arduino board? If yes, which ones? Can the pins labeled as PWM be used?

Yes, you can use any other pins for your ideas.

Are theses pins labeled as A2, A3, A7, A8, A9, A10 on the arduino?

nope, 2, 3, 7, A8, A9, A10

This only leaves pins A4, A5, A6, A10, A11 to be used?

nope, all the ADCs ( except A8, A9, A10) ans all digitals (except 2, 3, 7)
Attachments:

Please Log in to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio

Follow us

You can also follow us on:

facebook   google   instagram

pinterest   youtube   twitter