Welcome, Guest
Username: Password: Remember me

TOPIC: Which pins are being used by Pedalshield?

Which pins are being used by Pedalshield? 2 years 2 months ago #985

  • BowDown
  • BowDown's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 55
  • Thank you received: 6
  • Karma: 2
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?
The administrator has disabled public write access.

Which pins are being used by Pedalshield? 2 years 2 months ago #988

  • ucfanrg
  • ucfanrg's Avatar
  • OFFLINE
  • New Member
  • Posts: 12
  • Thank you received: 7
  • Karma: 2
Can't you use the SPI port on the Arduino Due?
Or did you want to use Software SPI ?
The administrator has disabled public write access.
The following user(s) said Thank You: BowDown

Which pins are being used by Pedalshield? 2 years 2 months ago #989

  • BowDown
  • BowDown's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 55
  • Thank you received: 6
  • Karma: 2
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?
The administrator has disabled public write access.

Which pins are being used by Pedalshield? 2 years 2 months ago #990

  • ucfanrg
  • ucfanrg's Avatar
  • OFFLINE
  • New Member
  • Posts: 12
  • Thank you received: 7
  • Karma: 2
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 : https://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.
The administrator has disabled public write access.

Which pins are being used by Pedalshield? 2 years 2 months ago #991

  • BowDown
  • BowDown's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 55
  • Thank you received: 6
  • Karma: 2
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?
The administrator has disabled public write access.

Which pins are being used by Pedalshield? 2 years 2 months ago #992

  • Ray
  • Ray's Avatar
  • OFFLINE
  • Moderator
  • Posts: 692
  • Thank you received: 146
  • Karma: 41
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:

pedalshield-pinout_2013-12-03.jpg


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)
The administrator has disabled public write access.
Time to create page: 0.176 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio