Code Monkey home page Code Monkey logo

jymcu_sdcard's Introduction

JY-MCU Memory Module V1.0

License and attribution

This program is based on Peter Fleury's UART library and Ulricht Radig's MMC-SD Library which are both licensed under the GPL. This code is also Licensed under the GNU General Public License.

Hardware setup

This program is a little tool that allows you to access an SD Card in the Jiayuan JY-MCU SD Card Module V1.0. It is tested with the following configuration: MCU: Atmega644 Board: Pollin Evaluationsboard

Pin connection:

____________          ________________
|       PB1 |--------| CS            |
|       PB5 |--------| MOSI = DO     |
|       PB6 |--------| MISO = DI     |
| AVR   PB7 |--------| SCLK  SD Card |
|       GND |--------| GND           |
|       +5V |--------| +5V           |
|___________|        |_______________|

You don't need to connect any other wiring, no need for a second GND or a +3.3V connection. Actually MOSI = DI and MISO = DO, but it seems like this is labelled the wrong way round on the Jiayuan JY-MCU SD Card Module V1.0

Do not use SDHC cards, use MMC or SD cards!

Installation

Just compile this code using make and flash it using make program (you may need to change the Makefile for that to select your programmer, port etc.) to your ATMega 644 (other MCUs require definition changes, should work but aren't tested. Make sure you get the wiring configuration for other MCUs in mmc.h right).

Usage

Connect to your atmega using a serial cable with a Terminal at 57600 baud (tested with GtkTerm) and reset the Microcontroller. This will drop you in some type of shell, no matter if the SD Card is connected and working or not. Just type help and get started. In order to write files to your SD / MMC you should have created an empty, large file before. If the SD Card could not be initialized while booting, type init in the shell. If it does not work, make sure you got the pinning right, you may want to try a different SD Card or try if you swapped two pins (You might have got MOSI / MISO wrong).

Have fun!

jymcu_sdcard's People

Contributors

jeija avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.