Arduboy Hat Idea


#21

No need for custom bootloaders and bit-banging USB though, right?

Why not just write the hex files to the 32u4 over SPI (in-circuit serial programming)?

Details start on page 368 of the datasheet:

http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7766-8-bit-AVR-ATmega16U4-32U4_Datasheet.pdf

(PS. this is the first time I am realising that Microchip now own all of Atmel’s products?!)


#22

Oh, nice find.

I had just assumed SPI wouldn’t work for some reason, but if it’s possible then I think that’s the best option - minimal fuss.

(Yeah, microchip bought up Atmel late 2015 early 2016 aparently. It just took them some time to get all the documentation shifted over.)


#23

I can design a PCB for this project if anyone wants or no one started before me to design a PCB :smile:


#24

Arduboy owners. Help please!
I started working on PCB. I found a schematic of arduboy (page says it’s production schematic). But…
It’s working completely on battery voltage and crystal is 16MHz. There are no boost circuit. Running atmega32u4 with battery is not a good idea (lipo batteries can go below 3v and below 4.5v running at 16MHz is not safe).
Pokitto is 3.3v device. We need boost converter, logic level shifters etc. for this.
Is any arduboy owner faced any problem due overclocking? I want to stay in safe side but for lower production cost we can do overclocking.


#25

This was discussed back in the design stages (literally years ago now :astonished: - time flies!!) and Kevin acknowledged this, and said running it outside of the specifications would be no big deal:


#26

This 32u4 hat is quite an amazing project! Any estimate about the hw costs (just the electronics, excluding any 3d printed cover etc.)?

Btw. I might be good to divide this thread to separate “Porting Arduboy games” and “Arduboy Hat” threads.


#27

Thanks for information :slight_smile:
We can try running at 3.3v and 16MHz for a while and see what happens. If we see any problem I can add other circuits.
@Hanski production cost is not too much. When I draw a schematic I can say what is the production cost. Also you’re right. We need to split this discussion to another post.


#28

Good point. I think I’ll wave my magic wand and migrate all the posts into an ‘Arduboy Hat’ thread.

Edit:
Abracadabra, thread migrated.


#29

Here is schematic. If there is a problem please report me back. I will fix. I appreciate any suggestion :slight_smile:
Schematic:


ArduboyHat.pdf (133.4 KB)
PCB Top:

PCB Bottom:

Edit: XC6201 is actually XC6201P332MR

Edit 2: Added PCB layout images. I will add RGB led later. Board dimensions are 49x32mm. With this dimensions we can use seeed or jlcpcb PCB service with 2x3 panelled boards. It means you can buy 60 boards with just 5 dollar (plus shipping :smile:). Also small pcb means cheaper oshpark boards. I will calculate cost of one populated PCB tomorrow.


#30

Good work! :wink:

(I need to get some sleep…) :sleeping:


#31

To be safe, you should connect PD2/RXD and PD3/TXD to UART capable pins on the PEX, in case we want to use a serial based bootloader on the hat, as discussed above:


#32

@MLXXXp
Oops… I forget that. Thanks :slight_smile:
I see your posts on Arduboy forum. Your suggestions are really great to make stable hardware. If you want to say something about this project, I glad to hear your suggestions.


#33

Wonderful work! I suppose the PEX male connector in PCB will finally be facing downwards. As the PEX female connector in Pokitto is not in the middle of the device, should the PEX male connector be also more near the right edge on the PCB? To make it to look symmetric when connected.


#34

Actually 3D viewer not showing correctly. Arduboy Hat not wide as Pokitto. Here is drawing from top (sorry for bad drawing. i’m not good at drawing :smile:)


I tried to align right corners in this version of PCB. I can draw PCB as wide as Pokitto or with same wideness i can relocate pins to look like it’s in the middle of pokitto.


#35

Actually, it could be more pocketable, if you design the PCB to be full width of Pokitto (leave some millimeters for the case), and can reduce the height of the PCB.


#36

Alternatively if that’s difficult, perhaps provide a pin guard so that the hat can be removed and then protected when put away (e.g. in a pocket).
(Actually that’s a good idea either way.)

Though I agree that making it stretch the whole length would make it easier to work with/handle. It would also hopefully mean that the weight would hopefully be distributed more evenly, putting less stress on the pins.


#37

@Hanski You’re right. I will work on it today :slight_smile:
@Pharap I couldn’t catch your idea :pensive:
Here is another question. Is USB needed for Arduboy Hat? Removing USB connector makes everything easy and simple.


#38

Basically, the hat has male pins that plug into the PEX, and male pins are likely to get bent,
so creating some kind of guard to protect the pins would allow people to safely put the hat in their pocket.

Here’s a crudely drawn diagram:

Essentially it’s a bit like you get those little plastic guards for VGA/HDMI/USB connectors:

It would stop the pins getting bent if people put the hat in their pocket.


#39

It depends. Some Arduboy sketches use the USB port to emulate a keyboard, mouse or game controller. Some use it to mirror the screen to capture video or screen shots. Some developers use it to send debug messages to a serial monitor.


#40

If powering (:sweat_smile:) though USB is not necessary I will split USB VCC line and atmega VCC line. USB peripherals are still usable but atmega cannot power through USB VCC line. With this setup we can throw some parts like voltage regulator and some tantalum caps. It makes board cheaper and easy to find necessary parts.