EDIT 11.9.2014 problem SOLVED solution at the end
Dear company,
i have bought recently Olimexino-32u4-nano and i am dealing with several difficulties while using it. First of all, i am not able to swich off power of connector UEXT as well as SD card in the same time.
Secondly, i would need to reduce the power supply - it works only when SD card is not insert. I would like to ask you for your help.
thank you
mirovoj
#include <SdFat.h>
SdFat sd;
.
.
.
const int chipSelect = 4; //SD Card
#define tempPower 8 // Power up/down the DS18B20 sensor, power SD Card , UEXT power
void setup() {
// SPP +
// UEXT power enable --> PORTB4 --> D8
pinMode(tempPower, OUTPUT);
digitalWrite(tempPower, LOW);
pinMode(chipSelect, OUTPUT); // Power is ON 3.3V ...OK
.
.
. // with insert SD card no call Sd.begin
digitalWrite(tempPower, HIGH);
digitalWrite(chipSelect, HIGH); // Power uext is 2,5V ?????
.
.
.
digitalWrite(tempPower, HIGH);
digitalWrite(chipSelect, LOW); // Power uext is OFF... 0V
.
.
.
// call SD Card function
sd.begin(chipSelect, SPI_HALF_SPEED
.
.
.
digitalWrite(chipSelect, LOW); // without this UEXT doesnt swich off
digitalWrite(tempPower, HIGH); // power is swiched off only if SD card is not insert
English translate uncle Google. Excuse
There is an error in the power control SD card for pcb olimexino32u4-NANO ? At least according to this reference http://www.solarduino.net/?p=58 (http://www.solarduino.net/?p=58). While I do not know how to switch off Uext and reduce consumption of the module when the AVR is sleep
query in the native language
Anglictinu preklada stryko GOOGLe. Prepacte
Je chyba v ovladani napajania SD karty na pcb olimexino32u4-NANO ? Aspon podla tohto odkazu http://www.solarduino.net/?p=58. Zatial neviem ako prepnut vypnut uext a znizit spotrebu modulu ked avr je sleep
solution:
1 change power supply SD card .... Change PCB designs OR
2 switch output SS(chipselct) (D14) and MOSI (D16) to input before entering sleep leonardo AVR
This for project for Olimexino-Nano (Leonardo) board
for the sleeping Dataloger power of battery (Low consumption of battery)
English translate uncle Google. Excuse