Connect with us

Command Script for Read/Write from USB Stick or SD Card

Discussion in 'Microcontrollers, Programming and IoT' started by Electro132, Feb 10, 2014.

Scroll to continue with content
  1. Electro132

    Electro132

    261
    3
    Feb 12, 2013
    Hi,

    Would like to know if anyone can give me links to scripts that allow Read / Write from USB Sticks and SD Cards?

    The purpose is that the script runs the image file from the USB Stick or SD Card and then gets sent to the transmitter. I already had a look on google and there doesn't seem to be one. I am thinking of sending the data through 2.4 ghz transmitter but was wondering if IR would be best?

    Thanks
     
  2. BobK

    BobK

    7,682
    1,688
    Jan 5, 2010
    A script for what? You need hardware to run a script on.

    Bob
     
  3. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,497
    2,839
    Jan 21, 2010
  4. Electro132

    Electro132

    261
    3
    Feb 12, 2013
    Have you got any ideas on which IC chip is best to use to run a small program and script? I had a look at Arduino but wanted your opinion as i couldn't decide.
     
  5. BobK

    BobK

    7,682
    1,688
    Jan 5, 2010
    You need a lot more and an "IC chip". To access a USB flash drive, you need a single board computer that can act as a USB host. As far as I know, an Arduino cannot do that, it only acts as a USB device, which is not the same as a host.

    A Raspberry PI would be more suitable.

    Bob
     
  6. Electro132

    Electro132

    261
    3
    Feb 12, 2013
    What if i only need Arduino to read the one file that is stored and transmit it?

    Or better yet, is there an IC chip available that has a program on it already and that i could just load an image onto it and transmit it?
     
  7. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,497
    2,839
    Jan 21, 2010
    An Arduino can read a FAT formatted SD card as long as you use short filenames.

    There is no hope that you'll find an already programmed part. It's like going to buy a loaf of bread and looking for one that is already made into your favorite ice cream and pickle sandwich.
     
  8. BobK

    BobK

    7,682
    1,688
    Jan 5, 2010
    ROFL

    Bob
     
  9. Electro132

    Electro132

    261
    3
    Feb 12, 2013
    hey, i found out it was more easier to just get a usb stick fm transmitter, store a file into a usb memory stick, plug the mem stick into the usb fm transmitter and plug the transmitter module in where the FM transmitter was. This transmitter is running at 2.4 ghz.

    Should work, what do you think?
     
  10. BobK

    BobK

    7,682
    1,688
    Jan 5, 2010
    Honestly, I think you haven't a clue.

    Bob
     
  11. BobK

    BobK

    7,682
    1,688
    Jan 5, 2010
    To expound upon my previous answer:

    A USB stick FM transmitter reads MP3 files from a USB stick, processes them into audio, and transmits this audio on FM radio. This does not help with your problem of transmitting an image file.

    Bob
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-