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

Unable to compile with current Arduino IDE and library versions #2

Open
ottj opened this issue Feb 13, 2021 · 10 comments
Open

Unable to compile with current Arduino IDE and library versions #2

ottj opened this issue Feb 13, 2021 · 10 comments

Comments

@ottj
Copy link

ottj commented Feb 13, 2021

Hi
I just finished recapping my MZ80k and tried to load this awesome project onto an Arduino. I get all kinds of errors in the current Arduino IDE when I try to compile it. I then tried with downgrading the IDE and also the libraries, but the list of strange errors just changes. I am not able to update/fix the code myself. Can you provide some info which IDE and library versions to use, or even a fix in the code? Thanks a lot in advance

@hlide
Copy link
Contributor

hlide commented Feb 14, 2021

Hi. Can you describe the version of the IDE you used? That project is kinda old and I am now using Visual Studio plus an Arduino plugin. Arduino IDE and libraries are not as simple as they should be because they are constantly evolving. I'll try with the most recent IDE and libraries.

@hlide
Copy link
Contributor

hlide commented Feb 14, 2021

Also can you tell me what the devices you want to use with Arduino MEGA?

@hlide
Copy link
Contributor

hlide commented Feb 14, 2021

You can see the version 1.8.5 and in the end the list of libraries and their version. I didn't update all the versions, that would be my next task. When finished, I will push my last commit as I can see the GitHub version is not the last.
image

@hlide
Copy link
Contributor

hlide commented Feb 14, 2021

I just need to update the SdFat to the one I wanted:
image

@hlide
Copy link
Contributor

hlide commented Feb 14, 2021

I committed last change. Try it with Arduino IDE 1.8.5 and the libraries as listed in pictures.

@ottj
Copy link
Author

ottj commented Feb 14, 2021

Hi. Thanks a lot for this fast reply! I was able to compile it with the versions you specified, although I had to remove the
#include "mz-sd2cmt.std.h" line from .ino file, since this is missing from the files. So you either have to remove this line as well or commit the file.

Uploading it to the Arduino Mega 2560 worked as well.

I plan to use it with the the OLED screen, IR remote, and SD Card reader specified in the readme. At a later stage I I might also add a relay module to be able to trigger the reset of the MZ80k via remote.

@hlide
Copy link
Contributor

hlide commented Feb 15, 2021

Good to hear! I forgot to remove that file so it is okay to proceed this way. Regarding IR remote, pay attention to their keycodes, they may vary if you don't take the one I took or you will need to modify them in the code because they are not standard unhopefully.

I once tried that player on my MZ-80 K and had to play twice to make sure MZ-80 K loads unlike MZ-700. It may be an issue with terminating a header block to let it start the data block. A second play will skip the header block to start the data block. By playing I mean only launching from MEGA while MZ-80 K is still trying to load (no break). I didn't try to investigate further because I had more priority elsewhere and it was for testing faulty DRAM and replacing them.

@hlide
Copy link
Contributor

hlide commented Aug 11, 2024

As a fact MZ-80 K and MZ-80 A outputs MOTOR signal as 12V, not 5V which is not good for the Arduino MEGA. So we need a shift level for it, using a LM7805 for instance.

@ottj
Copy link
Author

ottj commented Aug 12, 2024

MOTOR is a pulsed signal, and LM7805 are more for power AFAIK. Maybe a voltage divider would be better suited? https://forum.arduino.cc/t/12v-signal-to-5v-with-lm7805/324733
I'd prefer having a small board with these components so I can add it to the wiring inside the 80K.

@hlide
Copy link
Contributor

hlide commented Aug 12, 2024

MOTOR is not just a pulse signal, it powers MZ 80 K and MZ 80 A dataset with 12V (yep, that's why it is called MOTOR and not REMOTE). As for MZ-700 and MZ-800, it also powers their dataset but with 5V. But in our case, a voltage divider can be used since we don't need to power our MEGA through MOTOR signal.

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

2 participants