How to Program Helder's All in One GBZ PCB with Arduino IDE

Discussion about other hardware (including other Pi-like boards)
User avatar
RetroGamingNow
Posts: 137
Joined: Fri Jul 15, 2016 7:55 pm
Has thanked: 9 times
Been thanked: 24 times

Re: How to Program Helder's All in One GBZ PCB with Arduino IDE

Post by RetroGamingNow » Sun Aug 14, 2016 7:42 pm

wermy wrote:For OSX users: I was able to program the board using the following steps:

Follow the instructions here to install the sparkfun boards for the Arduino IDE to use: https://github.com/sparkfun/Arduino_Boards
Wire up a button (or even just two wires that you momentarily press together to act as a button) to the RESET and GND pins on the board

In the Arduino IDE under the Tools menu:
Select Sparkfun Pro Micro for the Board option
Select ATMega32U4 5V, 16MHz for Processor
Select AVRISP for Programmer (NOT "AVR ISP mkii")

Press the Upload button in the Arduino IDE
Immediately press the reset button you wired up (or touch the wires together for a moment)
It should program it just fine!
I cant seem to get this to work. I was able to do everything you said above but seems like my MAC is not installing whatever drivers are necessary for this USBasp. What am i doing wrong?

User avatar
SwingeyP
Posts: 14
Joined: Mon Jul 25, 2016 2:48 am
Has thanked: 1 time
Contact:

Re: How to Program Helder's All in One GBZ PCB with Arduino IDE

Post by SwingeyP » Mon Aug 15, 2016 4:48 am

Hello again @Helder

I tried the board with a windows 7 laptop from work. Same result I am afraid.

I ordered two boards from you and so decided to wire up the second. This gives excatly the same result when connected to win10, Win7 and thePiZero. Weird to say the least. Both boards seem to program ok via the USBASP programmer. I just get nothing when connecting. No gamepads detected. No HID just an error reporting that the USB device connected has malfunctioned and an 'unrecognised USB device' in the device manager.

I find it hard to believe that both boards would not function in this way and i'm sure it's me doing something wrong. I have followed all the support threads wired up exactly as you describe. Swapped the D+ and D- wires just to check in all setting but still nothing.

I have built several arcade machines in the past using MAME and KADE. As a test I configued the KADE and tried that with my Win10 and WIn 7 machines. That worked no problem. I then connected that to the PiZero. Worked a treat! The problem doesn't appear to be with the USB on my machines or the PIZero.

Back to the AIO board I connected the USB from PI Zero connections to a USB to SERIAL convertor PCB. This allowed me to connect to COM1 and try a serial port 'sniffer' to see if anyting was going on. This also failed. Nothing happening at all when buttons pressed :-(

I'm sorry to be the one giving so much agro as everyone else seems to be up and running with no hassle.

What should I try next?

Thanks for all your help.

Paul.
---------------------------------------------------------------------------------------------------------------------------------------
[color=#8000BF][b][size=85]https://www. ... b][/color][/size][/size]

User avatar
Popcorn
Trailblazer
Trailblazer
Posts: 354
Joined: Thu May 05, 2016 12:58 am
Location: Berlin
Has thanked: 29 times
Been thanked: 71 times

Re: How to Program Helder's All in One GBZ PCB with Arduino IDE

Post by Popcorn » Mon Aug 15, 2016 9:10 am

For OSX, if you don't have the "Sparkfun Pro Micro" board listed in Tools / Boards, then do the following:

In the main menu bar, go to the "Arduino menu" and "Preferences"

In the last field titled "Additional Boards Manager URLs" field, enter this url:

Code: Select all

https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json
and press OK. Then go to Tools / Boards / Boards Manager.

Select Type "Contributed" and select "SparkFun AVR Boards" and "Install" and then "Close". Then in Tools / Boards, you should be able to select "SparkFun Pro Micro".

From there, just follow Wermy's instructions from there.

o-prime
Posts: 14
Joined: Wed Jun 22, 2016 2:27 pm
Location: Germany
Has thanked: 11 times
Been thanked: 1 time

Re: How to Program Helder's All in One GBZ PCB with Arduino IDE

Post by o-prime » Fri Sep 09, 2016 5:00 am

I want to program the AIO PCB with the new controller sketches. But i get this error code while uploading:

...Desktop\Arduino\GBZ_Controller\NoAnalog\Gameboy.hex\Gameboy.hex.ino:1:21: fatal error: Gamepad.h: No such file or directory#include <Gamepad.h>^compilation terminated.exit status 1

Is this because this bootlaoder problem and i have to buy a USBASP to make it work?

User avatar
Helder
Trailblazer
Trailblazer
Posts: 2985
Joined: Thu May 05, 2016 8:33 am
Location: Rogers, AR
Has thanked: 1459 times
Been thanked: 3114 times

Re: How to Program Helder's All in One GBZ PCB with Arduino IDE

Post by Helder » Mon Sep 12, 2016 5:58 pm

o-prime wrote:I want to program the AIO PCB with the new controller sketches. But i get this error code while uploading:

...Desktop\Arduino\GBZ_Controller\NoAnalog\Gameboy.hex\Gameboy.hex.ino:1:21: fatal error: Gamepad.h: No such file or directory#include <Gamepad.h>^compilation terminated.exit status 1

Is this because this bootlaoder problem and i have to buy a USBASP to make it work?
You need to download a library for it, use the images below to install the one I have highlighted.

Image

Image
Chat with me and other members On Discord

Don't contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.


Helder's Game Tech Website

We will not support any cloned work so don't come to us with technical issues to resolve, go talk to the cloner for help.

User avatar
solder
Posts: 71
Joined: Thu May 05, 2016 3:27 am
Has thanked: 26 times
Been thanked: 14 times

Re: How to Program Helder's All in One GBZ PCB with Arduino IDE

Post by solder » Sat Oct 15, 2016 3:40 pm

Thx @Helder, went for it & flashed successfully on OSX using a piece of wire :o
3 tries after i noticed i was missing some Arduino library ;D
done.png
done.png (5.65 KiB) Viewed 14797 times

larsen2011
Posts: 35
Joined: Sun Jul 17, 2016 11:37 am
Has thanked: 16 times
Been thanked: 4 times

Re: How to Program Helder's All in One GBZ PCB with Arduino IDE

Post by larsen2011 » Thu Oct 20, 2016 10:55 am

Also trying to use this update method, fixed the first problem (same as above for solder), now struggling with this:
In file included from D:\Documents\Arduino\New GBZ Controller Sketches\GamepadNoAnalog-HID\GamepadNoAnalog-HID.ino:1:0:

D:\Documents\Arduino\libraries\HID-Project\src/HID-Project.h:35:2: error: #error HID Project can only be used with an USB MCU.

#error HID Project can only be used with an USB MCU.
Any idea how to solve it @Helder?

User avatar
Helder
Trailblazer
Trailblazer
Posts: 2985
Joined: Thu May 05, 2016 8:33 am
Location: Rogers, AR
Has thanked: 1459 times
Been thanked: 3114 times

Re: How to Program Helder's All in One GBZ PCB with Arduino IDE

Post by Helder » Thu Oct 20, 2016 12:58 pm

larsen2011 wrote:Also trying to use this update method, fixed the first problem (same as above for solder), now struggling with this:
In file included from D:\Documents\Arduino\New GBZ Controller Sketches\GamepadNoAnalog-HID\GamepadNoAnalog-HID.ino:1:0:

D:\Documents\Arduino\libraries\HID-Project\src/HID-Project.h:35:2: error: #error HID Project can only be used with an USB MCU.

#error HID Project can only be used with an USB MCU.
Any idea how to solve it @Helder?
Pictures of what you have chosen as your MCU is helpful. Be sure to choose the Leonardo as the MCU in the Auduino IDE.
Chat with me and other members On Discord

Don't contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.


Helder's Game Tech Website

We will not support any cloned work so don't come to us with technical issues to resolve, go talk to the cloner for help.

larsen2011
Posts: 35
Joined: Sun Jul 17, 2016 11:37 am
Has thanked: 16 times
Been thanked: 4 times

Re: How to Program Helder's All in One GBZ PCB with Arduino IDE

Post by larsen2011 » Thu Oct 20, 2016 1:48 pm

I'm a complete newbie to this Arduino topic... Sorry @helder

I've not chosen anything.
I've connected everything as per the first post, and used the software linked / the sketches linked and went through the guide. As mentioned, I was able to get rid of the first error message, as it was the same as @solder , now I don't know what to do now.

After connecting my board to the PC it showed up as "Arduino Leonardo" and not as the "Sparkfun" as shown in your pictures.

If there is another thread or external link that I can read through to get this solved, please share. Or let me please know what settings I need to change / choose in the software.

Thanks!

User avatar
Helder
Trailblazer
Trailblazer
Posts: 2985
Joined: Thu May 05, 2016 8:33 am
Location: Rogers, AR
Has thanked: 1459 times
Been thanked: 3114 times

Re: How to Program Helder's All in One GBZ PCB with Arduino IDE

Post by Helder » Thu Oct 20, 2016 3:12 pm

larsen2011 wrote:I'm a complete newbie to this Arduino topic... Sorry @helder

I've not chosen anything.
I've connected everything as per the first post, and used the software linked / the sketches linked and went through the guide. As mentioned, I was able to get rid of the first error message, as it was the same as @solder , now I don't know what to do now.

After connecting my board to the PC it showed up as "Arduino Leonardo" and not as the "Sparkfun" as shown in your pictures.

If there is another thread or external link that I can read through to get this solved, please share. Or let me please know what settings I need to change / choose in the software.

Thanks!
Do everything that is on the first post and get the new sketches and when you choose the board you choose this:
Image

Be sure the board goes into the bootloader mode by using a switch or jumper wire from any GND point to the Reset on the ISP header area. Once you do go into bootloader choose the Com Port that shows in the COM Port menu in the above picture.
Chat with me and other members On Discord

Don't contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.


Helder's Game Tech Website

We will not support any cloned work so don't come to us with technical issues to resolve, go talk to the cloner for help.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest