Author Topic: Arduino Due wireless sketch uploading  (Read 4189 times)

0 Members and 1 Guest are viewing this topic.

Offline tomshirvoTopic starter

  • Regular Contributor
  • *
  • Posts: 53
Arduino Due wireless sketch uploading
« on: May 07, 2013, 05:15:50 am »
I'm trying to make it so the Arduino Due is able to get wireless sketch uploads, as the title says.
There are lots of tutorials out there but only for the Arduino Uno, below is the link.
http://www.ladyada.net/make/xbee/arduino.html

After doing  research on this I now know a few more things. I first would like to get my idea out there and see if anyone thinks if it will work.A little bit of help with the analog circuitry if possible too would be amazing.

Off topic for once sec, I have been doing a lot of work with the Arduino Uno and now the Due, I have built and designed a BLDC motor controller(using the L6235) that works with the Arduino as a position controller.

I know that the Arduino Due uses another µC the ATMEGA16U2-MU to control the ERASE and RESET pins of the ATSAM3X8EA-AU for when using the IDE to upload a sketch.

My plan is to use an XBEE S2 with zigbee networking on it in API mode to control the boards and also do the wireless uploading of the sketch.
The ATSAM3X8EA-AU needs to have the erase pin held high for over 220mS for it to do an erase of the flash. This next part is an assumption (Probably not a good one) that I need to then reset the device to let the sketch be uploaded.

I have included a picture of what the erase and reset pins have to do.

I was thinking that I could use a few capacitors, transistors and resistors to get this to work but I have found out how hard it really is to do things without a  µC.

Also Dave if you see this, found your YouTube videos about 6 months ago and can't get enough of them.
 

Offline Harvs

  • Super Contributor
  • ***
  • Posts: 1204
  • Country: au
Re: Arduino Due wireless sketch uploading
« Reply #1 on: May 07, 2013, 09:06:16 am »
If you haven't seen Mike's video then I'd suggest having a look...

http://youtu.be/jbLy6kE-Szg
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8413
Re: Arduino Due wireless sketch uploading
« Reply #2 on: May 07, 2013, 10:17:42 am »
If you want to generate those signals then a dual Schmitt-trigger inverter with both connected in series and the first one with a capacitor+resistor would be enough. Look at the sn74lvc2g14.
 

Offline jl-p

  • Newbie
  • Posts: 1
Re: Arduino Due wireless sketch uploading
« Reply #3 on: April 30, 2015, 10:55:32 pm »
Did you exceed your project.
Because i want sort of the same but then with a YUN shield.

Kind regards

Johan
 

Offline tomshirvoTopic starter

  • Regular Contributor
  • *
  • Posts: 53
Re: Arduino Due wireless sketch uploading
« Reply #4 on: May 01, 2015, 07:05:23 am »
Hi Johan, I ended up writing a custom bootloader for the Arduino Due to allow me to do the firmware upgrades.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf