Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use an Arduino DUE or Zero? #14

Open
carlosdelfino opened this issue Sep 1, 2017 · 6 comments
Open

Is it possible to use an Arduino DUE or Zero? #14

carlosdelfino opened this issue Sep 1, 2017 · 6 comments

Comments

@carlosdelfino
Copy link

From the little that I have analyzed of the code, there is no exclusive nail of the Arduino UNO, therefore it seems perfectly possible to use an Arduino DUE, but before starting, I would like to have this answer on your part. What do you think? do you see something that implies that such a code is used directly on Arduino DUE or Zero? And even if you think it's complex to carry it?

The advantage of using DUE or Zero is the voltage compatibility.

@FunnyKiwi
Copy link

The exe file will instantly close if you try to upload to a DUE, I tried it and it said "invalid parameter". It seems as if it only supports the UNO and Lenardo.

@linpp
Copy link

linpp commented Dec 24, 2017

With some minor changes to the sketch, I got it to run on a ESP8266, which is not even a real Arduino, so I would think you could get it to run on a DUE or Zero. You just need to map the DD, DC, RESET and LED pins to correct pins on your board, and make sure you are using the right serial port (for dual USB boards). The only reason the windows program would return "invalid parameter" is if you didn't specify all the arguments. The UNO/Leonardo switch is not optional, it really just means whether to assert DTR (0 | 1) on the serial port based on the board you are using.

@nullp0tr
Copy link
Contributor

I haven't tried with a DUE or a ZERO, but I used a ESP8266 as well, and even a NANO, so it's definitely doable without much fuss, Just change the pinout as needed and check the DTR on the board.

@DirtyEngineer
Copy link

@nullp0tr @linpp
May I inquire as to what pins/changes you use to get the ESP8266 to work?

I wired up a Wemos D1 Mini using pins
DD = 6;
DC = 5;
RESET = 4;
LED = LED_BUILTIN;

CCloader doesn't get a response from the Wemos. Using the correct com port. I'm sure it's something minor I missed when compiling the code for the Wemos. Any help would be greatly appreciated.

@linpp
Copy link

linpp commented Jan 30, 2018

@DirtyEngineer
I'm not sure what pins you are hooking up to, but using raw numbers for pins means you have to do the board mapping in your head. You are using GPIO 4, 5, 6 and GPIO 6 isn't even available on any devkit. For ESP, you should be using the D# pin mappings defined in pins_arduino.h for your board.

Note that on my ESP devkit, D4 is the same as LED_BUILTIN (GPIO 2), so I cannot use D4 for this sketch. Here's the mapping I used for a v3 devkit, it should also work for your WeMos D1 mini:

int DD = D3;
int DC = D2;
int RESET = D1;
int LED = LED_BUILTIN;

@DirtyEngineer
Copy link

@linpp
Well that was a silly mistake for me to make wasn't it (facepalm). I should have caught that.

Thank you for bearing with me and taking the time to clarify this. Much appreciated.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants