Welcome, Guest
Username: Password: Remember me

TOPIC: How to start programming pedalSHIELD

How to start programming pedalSHIELD 10 months 2 weeks ago #26

  • JR
  • JR's Avatar
  • OFFLINE
  • Moderator
  • Posts: 74
  • Thank you received: 20
  • Karma: 4
This is a short guide to start coding pedalSHIELD. I am going to explain just the basic ideas you need to know to progress as fast as possible.

1. What Do You Need to Know About the Hardware?
If you know nothing about electronics it's ok!, you just need to know how the hardware resources are mapped.

pedalshield-pinout_2013-12-03.jpg


Inputs:
ADC0: Guitar in.
ADC1: Guitar in.
ADC8: Potentiometer 0.
ADC9: Potentiometer 1.
ADC10: Potentiometer 2.
PIN7 (PWM7): FootSwitch.
PIN2 (PWM2): Toggle button.

Outputs:
DAC0: Pedal out.
DAC1: Pedal out.
PIN3 (PWM3): LED.

2. Installing the Software.
The integrated development environment (IDE) software for Arduino DUE is needed. It is available in the Arduino Software page with all the instructions. There is also a getting started with Arduino DUE guide for further details.

Once all the software is installed the environment should look like this:

pedalshield-cables.jpg



3. Start Coding!
There is a series of pedals already available in the forum. All this effects have "educational" purposes. The idea is to have them as a base to start improving or coding your own effects, so the codes have a balance between performance and complexity to understand.
Going from the easiest to the most difficult, the natural evolution is:
  1. Clean/Volume/Booster pedal
  2. Distortion pedal.
  3. Clean Sampled pedal.
  4. Delay pedal.
  5. Echo pedal.
  6. Octaver pedal.
  7. Reverb pedal.
  8. Sinewave Generator.
  9. Metronome.
  10. Tremolo.
  11. Chorus/Vibrato.

There is a Github repository with all the codes. You can also download them all in a .rar file:

File Attachment:

File Name: pedalSHIELD-all-pedals.rar
File Size: 20 KB
keep it simple
Last Edit: 10 months 4 days ago by JR.
The administrator has disabled public write access.
The following user(s) said Thank You: christiangraves, KennethDStewart

How to start programming pedalSHIELD 6 months 2 weeks ago #107

  • dra9his
  • dra9his's Avatar
  • OFFLINE
  • New Member
  • Posts: 1
  • Karma: 0
What library need to add?
How can I get away from '->' is not a pointer?

Thanks a lot!
The administrator has disabled public write access.

How to start programming pedalSHIELD 6 months 3 weeks ago #108

  • JR
  • JR's Avatar
  • OFFLINE
  • Moderator
  • Posts: 74
  • Thank you received: 20
  • Karma: 4
You do nt need to install any additional libraries, all the codes are error-free and only use Arduino standard libraries.
Just be sure that you are using the right Arduino software, currently the Arduino 1.5.6-r2 BETA (with support for Arduino Yún and Arduino Due boards)
keep it simple
Last Edit: 6 months 3 weeks ago by JR.
The administrator has disabled public write access.

How to start programming pedalSHIELD 2 months 2 weeks ago #138

  • mikemac
  • mikemac's Avatar
  • OFFLINE
  • New Member
  • Posts: 2
  • Karma: 0
int POT0, POT1, POT2; //variables for 3 pots (ADC8, ADC9, ADC10)

sorry for out of topic question.
i wanted to know how arduino works that POT0 is on ADC 8 without a code that states POT0 = adc8 ?
thanks
The administrator has disabled public write access.

How to start programming pedalSHIELD 2 months 4 days ago #144

  • JR
  • JR's Avatar
  • OFFLINE
  • Moderator
  • Posts: 74
  • Thank you received: 20
  • Karma: 4
The POT0 is physically connected to the ADC8 of the Arduino Due board (you can check the Arduino Due pinout)

When the ADCs are read in the main loop we have:
POT0=ADC->ADC_CDR[10];                // read data from ADC8    
At this point the ADC8 value is loaded in the POT0 variable.
keep it simple
The administrator has disabled public write access.

How to start programming pedalSHIELD 2 months 1 day ago #147

  • mikemac
  • mikemac's Avatar
  • OFFLINE
  • New Member
  • Posts: 2
  • Karma: 0
but it written ADC_CDR[10]
why the numer 10 refers to ADC 8 ?
The administrator has disabled public write access.

How to start programming pedalSHIELD 2 weeks 4 days ago #159

  • JR
  • JR's Avatar
  • OFFLINE
  • Moderator
  • Posts: 74
  • Thank you received: 20
  • Karma: 4
but it written ADC_CDR[10]
why the number 10 refers to ADC 8 ?

In the Arduino DUE pinout you can see that the pin marked as A8 (ADC8) is internally connected to the AD10 (Analog to Digital converter number 10).
keep it simple
Last Edit: 2 weeks 4 days ago by JR.
The administrator has disabled public write access.
Moderators: JR
Time to create page: 3.993 seconds
Powered by Kunena Forum