now we are currently working on intel galileo arduino compatible board. In that we are interfacing 3 sensors to the galileo board. We want to store those sensor's data into sd card. So, the question is, how can we access the sdcard and write those data into sd card. Any help would be appreciated.
You can use the Arduino SD library to read/write to the SD card. There is a bug, however, that if the file was not already there on the SD card, it must be created first using a Linux command. Please see https://communities.intel.com/thread/46635 for a workaround.
Related
I am trying to run a software that came with a Alphasense NDIR CO2 sensor on small device like Raspberry Pi and Arduino. I can't run .exe files on them so I am seeking help on what small device will do the trick.
I can only get data out through the software it came with which requires a PC. It does not work like other sensor that I can just wire it to Arduino and get data out and saved on a SD card without a PC. So, I assume a code is needed to be send to be able to log the data which was built-in on the software. So I am trying to run the software on a small device since I do not know the code for logging data.
Raspberry Pi in its version 2 supports Windows 10 IoT Core, not a full version of Windows but could you start here. MORE INFO
I want to use ATmega2560 MC, but it manufactured only as surface mount IC which means i must make PCB to use it. I searched for a per-made kit and found Arduino Mega R3 board contains the desired MC. (It contains less I/O pins but that's OK for now). Can i implement my code (without any arduino code) in this board? or should i modify it to work with Arduino, also if it runs in the board will it be the same as normal IC or there will be differences in speed.
The MCU in the Arduino Mega2560 is a stock ATmega2560. There is no need to use the Arduino libraries to program it and no need to use the Arduino tools to communicate with it; avr-gcc and avrdude will work with it as normal. Note that you will need to select the appropriate programmer/protocol in avrdude for the bootloader programmed on the chip if you want to program it via serial rather than ISP.
I downloaded USB host shield code from the following website:
https://github.com/felis/USB_Host_Shield_2.0/archive/master.zip.
This contains too many files to which one I have to include for my application.
I want to know if USB host shield can be mounted to work in Arduino Uno. If yes can anybody provide me sample code to read SD card text file using USB host shield for Arduino Uno ?
I suppose that by "reading a SD card text file" you mean plug a SD card in a SD-USB adapter and then reading the file from it.
If so, there should be an example in the library called testusbhostFAT (here you will find the online version) where they read files stored in a FAT HDD (and I think that SD-USB adapters are seen as HDDs or FDDs).
Anyway they explicitly say that
This will not run a Arduino Uno due to the limited ram available in the ATmega328p.
By looking at the code maybe you will manage to slim it enough to run it on a Uno, but... Well, probably it's a bit hard.
Bye
I have successfully running push buttons and analog sticks working on a board of mine through the serial connection via the Arduino IDE. How do I get that data to work with Xinput?
I have my own emulation software that works in Xinput beyond that. I just need to get the gamepad device xinput support. What are the neccessary steps to get this working with a driver and how I can get this up in running in the least amount of timing possible without having to edit someone else's driver too much?
You can turning an Arduino Leonardo into a joystick, use a teensy board and the teensy joystick library, use a HID-compatible bluetooth chip (such as RN-42 HID or something similar) with a joystick/gamepad profile or just remove a controller's existing joystick parts and replace with your components.
I'm using the Arduino Ethernet Pro board and MP3 player shield from Sparkfun (http://www.sparkfun.com/products/10536 and http://www.sparkfun.com/products/10628)
I tried to use the examples provided by Sparkfun but i keep running in to the same errors, which i have nailed down to initializing the SD Card (I'm using the SdFat).
To nail down the core issue i tried running the "SdInfo" example from the SdFat library. This is my output:
SdFat version: 20111205
type any character to start
card.init failed
SD errorCode: 0X1
SD errorData: 0X0
If i change SS_PIN from 9 to 10 in Sd2PinMap.h per Sparkfun instructions (http://www.sparkfun.com/tutorials/295) the sdcard.init(...) method just hangs.
I think the issue is because of a conflict between the W5100 ethernet chip and the MP3 player shield.
Is there any conflicting ports that i am unaware of? Or do i need to disable the W5100 chip?
What size SD card are you using? (try using a SD card that is <4GB for compatibility )
You dont need to change it to pin 10 according to the schematic Sparkfun have posted.
Also looking at the sparkfun page have you tried this? madsci's Library
and also try this init command in the declarations card.init(SPI_FULL_SPEED, 9)
.. let me know how that works for you
-Ralim
You have chip-select conflicts with all of the SPI devices you're using. The "Quick Start" guide on SparkFun for the MP3 shield discusses how to change the SD library to work with the MP3 shield. You need to make similar changes so that you can use yet another CS pin with the MP3 shield, and leave 9 and 10 for the SD card and W5100.
When using multiple SPI devices, it's best to list the CS pins out. When you add a new SPI device, as with the MP3 shield, you'll be able to see which pins are already doing what.