Larger SRAM?

This topic contains 9 replies, has 4 voices, and was last updated by  Michael 4 years, 3 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #637

    JFiddle
    Member

    If I could find 8 pin DIP SRAM chips with high capacity, could I substitute them? Any code alterations needed?

    #1736

    JFiddle
    Member

    Actually, would I have to make major changes to the code to add more SRAM chips? I can get the ones you use pretty cheaply. I’m thinking instead of 256k memory, maybe expand it on a new shield to double or more memory.

    #1738

    Michael
    Keymaster

    You would need to use an additional Arduino pin as the chip select pin for each new chip you add. For example, if you add 2 more chips, you could use digital pins 3 and 4 for the chip select pins.

    Do you have experience with SPI? You would have to make changes to the Audio Hacker library to support more chips. Have you studied the library code?

    #1739

    JFiddle
    Member

    I’ve studied the schem and code. No experience at all. I’m jumping in the deep end here.
    From memory (my own lol) I can see how to connect them, and in code I can see (not fully understand yet) how they are addressed.
    Could it be a matter of copy/paste the code addressing the two SRAM chips with minor alterations to the code?
    I’m using an Eleven (Freetronics Australia 100% Ard. compatible) and it has this nice prototyping space on the board.

    Ps. Hacker arrived today. Quick delivery and well packaged. Can’t wait to break out the iron 🙂

    #1737

    Michael
    Keymaster

    It’s not as easy as copy/paste — you do need to understand it. If you understand how to use the chip select pins, and which address ranges go to which chips, then you can do it. If you have no micorcontroller programming experience, then this is definitely diving into the deep end of the pool.

    #1741

    JFiddle
    Member

    Yeeeeeh, I thought that might’ve been the case. I have a habit of doing that and then being like ???
    Think I’ll stick to the basics first lol.
    Built the Hacker last night, uploaded 8bit sketch….happy land 🙂
    Easy build (I like how after soldering the sockets you can still see the silk screen for each chip, nice touch). The only thing I’d say was difficult was the black on the board made it hard for me to tell if I got a good connection. Then again I get a bit OCD when soldering a PCB. I even double check the resistors with a multimeter.

    I bow before your greatness. Even just the ADC and DAC has solved a lot of issues so I can start tinkering with other audio sketches I have.
    One happy customer over ‘ere.

    #1742

    Michael
    Keymaster

    Thanks much for the feedback. Glad you had a successful build!

    #1865

    sofiazoe
    Member

    You would need to use an additional Arduino pin as the chip select pin for each new chip you add. For example, if you add 2 more chips, you could use digital pins 3 and 4 for the chip select pins……………………… 🙁 😮
    .

    #2190

    mehakj
    Member

    Would it be possible to use only an SD Card and be able to save longer/ higher quality samples?

    #2191

    Michael
    Keymaster
Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.