Please Help with Mega 2560 DeAgostini Millennium Falcon code

Hello all…

Fist time but long time enthusiast. I need some help.

I building a DeAgostini Millennium Falcon and I
can across this website.

I got all the parts and connected it according to website info.
Loaded it in Arduino software got multiple errors. Will not load on my
Mega 2560 board.
I tried to contact the person that made it, To no avail.

Anyone that can fix this code according to pic layout or get it working?

I’m will to make it worth your wild…

I’m a big Stat Trek and Star Wars fan with a huge collection of models and props.

Thank you for any help you can give…

You can reach me at email kahn1701@sbcglobal.net

Loaded it in Arduino software got multiple errors. Will not load on my Mega 2560 board.

What were the errors?

Thank you for any help you can give. My sketch errors at bottom.

Sketch creators youtube channel. https://www.youtube.com/watch?v=crCwffWHJzw

Sketch creators webbsight show complete info. https://plaza.rakuten.co.jp/kazuw01/diary/201702270000/

if you can fix this I'll make it worth your wild my friend.

Errors from my sketch.

This report would have more information with "Show verbose output during compilation" enabled in File > Preferences. Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Mega 2560 or Mega ADK" deagofalconmega.ino: In function 'void my_mp3_play(int, int)': deagofalconmega:105: error: 'Timer1' was not declared in this scope deagofalconmega:106: error: 'mp3_play' was not declared in this scope deagofalconmega.ino: In function 'void my_mp3_stop()': deagofalconmega:114: error: 'Timer1' was not declared in this scope deagofalconmega:115: error: 'mp3_stop' was not declared in this scope deagofalconmega.ino: In function 'void my_mp3_vol(int)': deagofalconmega:123: error: 'Timer1' was not declared in this scope deagofalconmega:124: error: 'mp3_set_volume' was not declared in this scope deagofalconmega.ino: In function 'void my_mp3_volup()': deagofalconmega:133: error: 'Timer1' was not declared in this scope deagofalconmega:134: error: 'mp3_set_volume' was not declared in this scope deagofalconmega.ino: In function 'void my_mp3_voldown()': deagofalconmega:143: error: 'Timer1' was not declared in this scope deagofalconmega:144: error: 'mp3_set_volume' was not declared in this scope deagofalconmega.ino: In function 'void flash()': deagofalconmega:159: error: expected primary-expression before ';' token deagofalconmega:177: error: expected `)' before ';' token deagofalconmega:178: error: 'else' without a previous 'if' deagofalconmega:179: error: name lookup of 'i' changed for new ISO 'for' scoping deagofalconmega:156: error: using obsolete binding at 'i' deagofalconmega.ino: At global scope: deagofalconmega:187: error: expected declaration before '}' token

Where is your code?

This compiles without error for me (don’t know if it actually works.)

DeagoFalconMega.ino (32.7 KB)

I just keep getting all kings of errors…See below.

If any one can talk me through this please.
Im new and dont have a clue what I’m doing or not doing.

But info and sketch bellow…

Errors--------------------------------------------------------------------------------------------------------
This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: “Arduino Mega 2560 or Mega ADK”
DeagoFalconMega.ino: In function ‘void my_mp3_play(int, int)’:
DeagoFalconMega:107: error: ‘Timer1’ was not declared in this scope
DeagoFalconMega:108: error: ‘mp3_play’ was not declared in this scope
DeagoFalconMega.ino: In function ‘void my_mp3_stop()’:
DeagoFalconMega:116: error: ‘Timer1’ was not declared in this scope
DeagoFalconMega:117: error: ‘mp3_stop’ was not declared in this scope
DeagoFalconMega.ino: In function ‘void my_mp3_vol(int)’:
DeagoFalconMega:125: error: ‘Timer1’ was not declared in this scope
DeagoFalconMega:126: error: ‘mp3_set_volume’ was not declared in this scope
DeagoFalconMega.ino: In function ‘void my_mp3_volup()’:
DeagoFalconMega:135: error: ‘Timer1’ was not declared in this scope
DeagoFalconMega:136: error: ‘mp3_set_volume’ was not declared in this scope
DeagoFalconMega.ino: In function ‘void my_mp3_voldown()’:
DeagoFalconMega:145: error: ‘Timer1’ was not declared in this scope
DeagoFalconMega:146: error: ‘mp3_set_volume’ was not declared in this scope
DeagoFalconMega.ino: In function ‘void read_pulse(int*)’:
DeagoFalconMega:217: error: ‘Timer1’ was not declared in this scope
DeagoFalconMega.ino: In function ‘void RemoteVerify(int*)’:
DeagoFalconMega:273: error: expected primary-expression before ‘{’ token
DeagoFalconMega:273: error: expected `;’ before ‘{’ token
DeagoFalconMega.ino: In function ‘void setup()’:
DeagoFalconMega:547: error: ‘Timer1’ was not declared in this scope
DeagoFalconMega:555: error: ‘mp3_set_serial’ was not declared in this scope
DeagoFalconMega:556: error: ‘mp3_stop’ was not declared in this scope
DeagoFalconMega:558: error: ‘mp3_set_volume’ was not declared in this scope

DeagoFalconMega.ino (32.7 KB)

What did the DeAgostini support line say?

Thanks for asking.

This has nothing to do with DeAgostini except for the model. See my 1st post for all the info. I got it from this webbsight https://plaza.rakuten.co.jp/kazuw01/diary/201702270000/

Im replacing the DeAgostini elec with a Mega 2560 board.

Do you have the Timer1 and DFPlayer_Mini_Mp3 libraries installed?

No.. How should I do that? Thanks again.

Go here:

https://github.com/PaulStoffregen/TimerOne

and click the "Clone or Download" green button at the top right; select ZIP and download the library. Open the ZIP file, select and copy (ctrl-c) the contents. Find your Arduino library folder (maybe under \Documents\Arduino\libraries) and past the folder there.

Then go here:

https://github.com/DFRobot/DFPlayer-Mini-mp3

and repeat.

Going to try ASAP..

I'll post my findings..

Again thank you for you time and patients sir.

OK got both files.

Next part..

If you copied the library files into your library folder, try compiling now.

Someone please help a newbie. I know Im a pain but I just need a step by step explanation to make this work or some facsimile of it.

Any help is appreciated .. Thank you for you patients...

In my Arduino folder is libraries folder with 3 files.

DeagoFalconMega file DFPlayer-Mini-mp3-master file TimerOne-master filke

And that's all. What do I do with these files. Every time I open the DeagoFalconMega in Arduino and try to compile I get all kinds of errores...

Thanks again for any help..

Hi Kahn

Did you ever get your solution - newbie myself

Churchy

No.. I got all the part but still getting errors everywhere. Maybe someday someone can send me a working file or newbw instruction on how to get it working. I even offer to pay/compensat anyone that can help me.

I am a complete newbie also but starting a similar Arduino project for my Deago Falcon model. The goals are:

remote and/or app control of various lighting circuits open/close ramp play various sound files

Right now I am just gathering parts and doing research. I have no promise of a time frame but anything I learn I am more than happy to share.

ch1potle