Show Posts
Pages: 1 2 [3] 4 5 ... 133
31  Using Arduino / Storage / Re: RamDisk - a file system library for RAM devices like 23LCV1024 on: March 29, 2014, 04:12:49 pm
Quote
It will just rewrite the existing file and the maxMicros should be less.
Code:
Starting test
t: 37.89 sec
minMicros: 40
maxMicros: 80
avgMicros: 41
sync micros: 4
filesize: 8000000
32  Using Arduino / Storage / Re: RamDisk - a file system library for RAM devices like 23LCV1024 on: March 29, 2014, 03:48:29 pm
With
Code:
//for (int j = 0; j < 5; j++) data[j] = analogRead(j);

Code:
Format (Y/N): Y
clusterCount: 250
Starting test
t: 0.57 sec
minMicros: 40
maxMicros: 124
avgMicros: 42
sync micros: 92
filesize: 120000

pin0,pin1,pin2,pin3,pin4
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
Done

And the same with:
Code:
if (RamDisk::format(&ram, 16384, 4, 1)) break;

Code:
Format (Y/N): Y
clusterCount: 16315
Starting test
t: 38.98 sec
minMicros: 40
maxMicros: 124
avgMicros: 42
sync micros: 92
filesize: 8000000

pin0,pin1,pin2,pin3,pin4
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
Done
33  Using Arduino / Storage / Re: RamDisk - a file system library for RAM devices like 23LCV1024 on: March 29, 2014, 03:34:15 pm
Thanks!
I get now (atmega1284p @16MHz):
Code:
Format (Y/N): Y
1: Hello RamDisk!
2: Line to test fgets

Code:
Format (Y/N): Y
clusterCount: 250
Starting test
t: 7.32 sec
minMicros: 40
maxMicros: 120
avgMicros: 41
sync micros: 96
filesize: 120000

pin0,pin1,pin2,pin3,pin4
226,208,165,186,153
206,221,206,216,200
213,228,224,230,224
225,237,239,245,244
239,243,242,243,243
238,239,239,240,239
234,234,234,234,234
230,229,227,228,227
224,223,221,218,216
213,211,209,208,207
Done
34  Using Arduino / Storage / Re: RamDisk - a file system library for RAM devices like 23LCV1024 on: March 29, 2014, 02:04:09 pm
Here is my mod for 8MB ramdisk (lib for M8MBRDSK11 and HelloRamdisk_8MB), coping with how to define fast IO within the lib.
Enclosed my files, pls be so kind and advice me how to tackle the templated signal pins (and bus port) there in the ram class  smiley-roll-sweat
HelloRamdisk_8MB:
Code:
// With 8MB Ramdisk, atmega1284p
// Fast IO is required with bitbanging here
#include <DigitalIO.h>
DigitalPin<12> NRD(OUTPUT);    // /RD active LOW
DigitalPin<13> NWR(OUTPUT);    // /WR active LOW
DigitalPin<14> NDATA(OUTPUT);   // /Data active LOW
// PortC is the data port

#include <M8MBRDSK11.h>
#include <RamDisk.h>

M8MBRDSK11 ram;
RamDisk file;
char buf[40];
..

Also, I need to increment the *buf while shooting bytes in/out:
Code:
C:\MyCode\Arduino\libraries\M8MBRDSK11\M8MBRDSK11.cpp: In member function 'virtual bool M8MBRDSK11::read(uint32_t, void*, size_t)':
C:\MyCode\Arduino\libraries\M8MBRDSK11\M8MBRDSK11.cpp:81: error: ISO C++ forbids incrementing a pointer of type 'void*'
C:\MyCode\Arduino\libraries\M8MBRDSK11\M8MBRDSK11.cpp:81: error: 'void*' is not a pointer-to-object type
C:\MyCode\Arduino\libraries\M8MBRDSK11\M8MBRDSK11.cpp: In member function 'virtual bool M8MBRDSK11::write(uint32_t, const void*, size_t)':
C:\MyCode\Arduino\libraries\M8MBRDSK11\M8MBRDSK11.cpp:88: error: ISO C++ forbids incrementing a pointer of type 'const void*'
C:\MyCode\Arduino\libraries\M8MBRDSK11\M8MBRDSK11.cpp:88: error: 'const void*' is not a pointer-to-object type

This is what I need (as discussed offline):
Code:
..
bool M8MBRDSK11::read(uint32_t address, unsigned char *buf, unsigned int nbytes) {
..
bool M8MBRDSK11::write(uint32_t address, unsigned char *buf, unsigned int nbytes) {
where
address is the starting address of a "block"
*buf is the pointer to buf[nbytes]
nbytes is the number of bytes in the block, ie 512
35  Using Arduino / Networking, Protocols, and Devices / Re: Bluetooth module hc-06 never responds to AT commands issued in arduino on: March 29, 2014, 12:59:18 pm
Try
Code:
Serial.begin(38400);
36  Using Arduino / General Electronics / Re: MOSFET Driver General Control/Activation on: March 29, 2014, 04:17:24 am
The max driver's input voltage (arduino to the driver) based on the datasheet is 3V CMOS (driver's INPUT1,2). So you may use a resistive voltage divider to go from 5V to 3V (ie 1k8/2k7).
The STATUS1,2 are read by arduino inputs, you need a pullup at the arduino inputs (ie 10k wired to arduino's +5V). Everyhing else is a matter of the table N.12 study..
37  Using Arduino / General Electronics / Re: LOW power HALT, battery and supplys. on: March 29, 2014, 03:28:40 am
That might work as the diode from "7805 gnd" to gnd will increase the 7805 output voltage by the diode drop.
Also mind the 7805 needs at least 2.5V higher input to operate properly (see the datasheet). Moreover you are upping the required input voltage by 0.7volt (the diode in 7805's gnd), that means your power source shall be something like 8.2V min to make 7805 happy. You may consider so called "low drop voltage regulators" which require input voltage 0.2V higher than its output.

Btw, I doubt you can connect the 4x1.5V battery directly as depicted in your schematics - consider at least a charging resistor as a minimum (to limit the battery charging current).

Also mind the voltage at "arduino power input" will be 6V unless the battery discharges itself to 5V.
6V may damage your "arduino" system and related circuitry when not using a proper voltage regulator at "arduino power" input (ie when using your own bare metal design)!
And mind the Arduino requires some minimal power voltage (when talking UNO for example) so 5-6V at its input may not make the Uno happy.
38  Development / Other Hardware Development / Re: SD card voltage level converter suggestions? on: March 29, 2014, 03:17:46 am
74LVC125A
But still 14pins.
So if you need only 4buffers out of 6 in the 4050 you have to cut off a piece of the 4050 package to fit it into your pcb design  smiley-razz
39  Using Arduino / General Electronics / Re: Speaker with resistor to create proper load? on: March 29, 2014, 02:59:19 am
The best way how to connect the 8ohm speaker to 32ohm output is via an audio transformer with 2:1 winding ratio, thus you will not loose 2/3 of your power there..  smiley-razz
40  Using Arduino / General Electronics / Re: LOW power HALT, battery and supplys. on: March 29, 2014, 02:51:04 am
Quote
..have a SMALL battery to keep it alive..
Alas there is a problem there that the 5 v would become 3.8 volts (or what ever it is.)
Thinking back, to get around this problem I put a diode (same as the one after the output) between the GND pin of the 7805 and GND which would offset the drop.
Not good.  You will drop the voltage even more, to 5V - 2x Diode_drop.
The best way is to put the SMALL battery (what does it mean SMALL?) at the 7805 input (btw, there are better voltage regulators today) with help of 2 diodes.
41  Using Arduino / General Electronics / Re: Measuring crystal frequency - HELP! on: March 29, 2014, 02:41:57 am
Quote
It is connected to two pins of the PIC and two capacitors going to +5v.
A good practice is to have capacitors going to Gnd, even it does not matter with good decoupling (good decoupling??).

Quote
I believe it is the input to the crystal and the common to Ground.
A good practice is to connect the o'scope to output of the crystal oscillator - see the datasheet which oscillator's pin is the input and which is the output. Try to use a small capacitor (ie 4.7pF) in series with your probe's tip.
The best way to measure the oscillator's frequency (pic or avr or other) is to feed the clock (or its fraction) to an output pin and to measure there..
42  Using Arduino / Sensors / Re: How to determine GPS accuracy? on: March 28, 2014, 03:20:13 pm
We are in sync - let us do it smiley
43  Using Arduino / Sensors / Re: How to determine GPS accuracy? on: March 28, 2014, 03:14:09 pm
He wants to track the position of the balloon, not the altitude only. The altitude itself could be measured by help of an ionization chamber (easy to make). The position could be tracked by radar (also a nice project). Or, having a beacon up there, you can triangulate with 3 receivers down on the earth (also a nice project). Sending pings from above and to measure the the timing differences - you need 4 arduinos for that - great  smiley-razz
44  Using Arduino / Sensors / Re: How to determine GPS accuracy? on: March 28, 2014, 02:35:15 pm
Anyway, a good high altitude balloon project means 130.000feet altitude at least.
When not having GPS up there working a star/celestial navigation may help. Also a nice project for arduino. A cheap VGA camera module, few dozens stars stored on an sdcard, an RTC running well when below -55degC, a little bit of math, and that is it..  smiley
45  Using Arduino / Sensors / Re: How to determine GPS accuracy? on: March 28, 2014, 01:41:27 pm
Ok, now let us agree 1m = 1.666feet  smiley smiley
Pages: 1 2 [3] 4 5 ... 133