Flash cart(ridge)


#123

Did a quick board design for how a sd card shaped version of the flashcart would look. The pins are laid out such that no damage will occur if you accidentally put this in an actual sd card slot or put a real sd card in the arduboy. Dimensions for all features are pulled from the official sd card spec. This would be the base contact layer half thickness with another pcb layer glued on top (with cutout for the chip) to allow the thickness to match an sd card. Plenty of room to add status led indicators or add two more pins for other functionality. Any level shifting would have to occur in the arduboy and a standard sd card socket can then be used with this card (either friction fit or click in, click out). I can have some prototypes made for free through my youtube pcb manufacturing sponsor.
image


#124

The idea is interesting. But using a SD cart slot as flash cart slot may be confusing. unless there is going to be SD card support as well. would be cool to put some LEDs at the rear edge driven by a MAX6966 or similar led driver


#125

I was thinking of putting read/write indicators on the back buffered from the miso and mosi lines. As for the lack of sd card support, the user would just need to know real sd cards are incompatible. The exterior of the slot or the back could have a simple message like: only compatible with arduflash (or insert decided upon name) cards!

I just figured the sd card format is small and robust, cheap/easy to find slot connectors and make your own cards (these pcbs would be dirt cheap to buy hundreds of), and wouldn’t add much bulk to the arduboy case with a clean flush slot on the exterior.


(Josh Goebel) #126

Why does the carrier have to be so wasteful? I think once you got the sync point you’d be good to go for a while if the timing was in sync properly. I was imagining visible light, not IR - like those early Microsoft watches you’d hold up to your monitor and then they would download your address book and calendars from your computer just by your monitor blinking on and off.


#127

Since it is an asynchronous protocol, there will be necessary overhead for encoding a mechanism for periodic clock synchronization as well as error checking (crc calcuation should be sufficient) and retransmit requests if need be. Without these precautions it is very likely that within only a few bytes there would be corruption of the data. Clock drift between both devices as well as environmental light interference are the main hindrances in such a system. Since we would be transmitting program data any deviation from the source is unacceptable so we would need to sacrifice some speed for reliability. And the issue with using visible light is it is even more susceptible to interference than IR unless very close range is used (like holding the device right up to an lcd screen).


(Josh Goebel) #128

Interference? I guess I’ve found those little photo diode things pretty reliable in the past if it was close enough… holding it right up to the screen doesn’t sound like a big issue to me.


#129

Reliable is relative to baud rate. Push the data speed up to tens or hundreds of kbps and watch as murphy starts flippin those bits on you. Definitely would be cool to make an android/iphone app though to transfer games by flashing the screen and holding your arduboy up to it. Ultimately though it would practically just be a novelty as usb is much faster, more reliable and most everyone I know carries spare cables around anyways.


(Josh Goebel) #130

Maybe a cool way to load levels or something smaller then?


#131

@sjm4306
As of where this project is, I agree that there is not a immediate need to have the wireless uploader.
On the other hand, why wireless? Wired ones are extremely stable, fast, cheap, and it wasn’t like you are going to wear out the golden micro USB plug by using it three times a day.
On the other hand, it might help, however, to have a better connection interface. (like the flash cartridge!)
I like the idea of a SD-card-friendly approach. At least you won’t worry about how the connectors should be (setup, and whether your pins are delivering what you want it to, or whether your pins had worn out and be changed.

ON THE OTHER HAND…
image
Pick one of these real-world tested formats that are NOT as commonly used as a SD would.
It would be smaller than the “flash cart(ridge)” we came up with, and more durable. (at least the socket itself would), and we can either “adapt to” the format of the card(via a homemade cheap PCB), or use the cards directly, by having:

Some homemade computer programs then can be used to write data directly to the card in the format a Arduboy would recognize (and load it)


(Chamekan) #132

https://community.arduboy.com/t/flash-cart/6647

Hi,

About two weeks ago, Mr. Nao(@n602) sent me a kit of Flash Cart.
I finished to make the kit and it works well.
Thanks to @Mr.Blinky and @n602.

By the way, can I use this flash from game app of Arduboy?
And how to do it?


(Simon) #133

Nice work … mine is still a work in progress as I haven’t had quality time to spend on it.


(Nao) #134

Mr. chamekan, I am very happy to see that Flash Cart was made by you and that it is being utilized by you.
And, as you tweet about it, a lot of people seem to be interested in it.
Thank you.

If the Flash Cart can be used easily for storing data such as games etc, it will be very convenient and wonderful.

For example, suppose that there are puzzle games that consist of many of stages.
Since it has many many stages, it has to be divided into several programs.

…I imagine if Flash Cart could be utilized as follows.

Make a program consisting only of a few stage data (–>main program) and a program consisting almost entirely of stage data (–>data program) and send them to Flash Cart.
The main program identifies the area of the data program in the Flash Cart and accesses it.
Then, the main program can access the data of many stages in the Flash Cart, and can play huge number of stage data…

Is it possible?
Or is it already considered as a concept of using Flash Cart?
Is there anything already developing a method to realize such a function?

Apparently, it seems to be a difficult task for me. :roll_eyes:


#135

It’'s nice to see another Arduboy with flashcart :slight_smile:

I’ve not fully worked it out yet. but the basic idea is to access it as raw memory rather then a filesystem:

  • A reserved vector in the sketch will contain the absolute page address of flash memory reserved for the sketch (set by the flasher utility)
  • A function like flash.SeekData(uint16_t page, uint8_t byte) will select flash address as abs_page + page
  • arduboy.SPItransfer* is used to transfer data

(* currently only SPItransfer of Arduboy2 library in homebrew package supports read)

I’ll see if I can cook up a demo.

Yes the idea is to use also to store game data (and savedata) and graphics on the flashcart (i plan to write a flash.drawSprite() function too)


(Chamekan) #136

Wow. I 'll read the code.
Thank you.


#137

It’d be awesome having some large epic rpgs that utilize external flash for saves, animation, assets and the like! It’s amazing what can fit into 32kB but imagine what we could do with MBs!!!


(Chamekan) #138

I’m not good at low level programming.
In Arduboy Lib, SPI CS is always selected for OLED.
Can someone show me a simple sample of using multiple SPI devices in Arduboy?
It is good enough to read JEDEC ID of flash.
Perhaps I can do the rest of it.


#139

I’ve added a test / example sketch to my github to show how sketch data stored in flash can be accessed :

To see this sketch in action you can burn the example flash image file from here

To build a flash image with data files you need to grab the latest flash-builder from here:

After you’ve burned the flash image file to the flashcart, select Flashcart test from the loader menu and you can enjoy the bad apple animation on the go :smiley:


(Chamekan) #140

Thank you very much, Mr.Blinky!!


(Chamekan) #141

Off the subject, I made a paddle controller for arduboy, and modified ArduBreakout for it.



2018-11-12%2010_30_45
This cartrige system is very nice!


(Simon) #142

That’s pretty cool … what about a joystick?