Show Posts
Pages: [1] 2
1  Using Arduino / Sensors / Triggering on Analog pins 0,1,2, Datalogger ADXL377 Questions,Level Detector on: July 08, 2014, 12:02:00 pm
Hello fellow tinkerers,

for my next project i would like to log data from an adxl377, temperature sensor  LMT84, DS 1307 RTC Clock. the ADXL377 because of the speed of my ADC i am building an Level detector between the ADXL377 and Arduino Nano (, (which is limited to 1000Hz because of the ADXL 377 see datasheet). Then all collected information is  send to my SD card reader.

because it is a stand alone i would like to trigger an Interrupt on the Rising edge of one of my analog pins through the ADC, and wake it up from sleep if movement is detected from the ADXL377 sensor which logged data and saves it to the SD card.

attached is a file that datalogs for temperature, current and voltage. Whereby the voltage is measured through an double comperator circuit with two voltage dividers which divided through 100 and amplifies x 10. The current sensor is from Polulu ACS907 -75A + 75A.
and the digital (the most slowest) DS18s20.

i have worked with interrupts, and brown detectors in other applications, but i am not getting the hang of interrupts in arduino or how to trigger them on analogpins, i greatly appreciate changes, on how to optimise or solve this challenge with interrupts. what alterations are preferred or are required, to let this program work?

sincerely yours,


2  Topics / Product Design / Arduino Air Ray and a Arduino DragonFly on: April 07, 2013, 11:41:09 am
Hello guys! (Nick if i posted this wrong please put it in the right map, i just dont know where to put it)

I wonder if people are doing something like this project i saw on Festo Youtube.

I think its easy to make with some balsawood and Plastic wrap Foil for some Sturdity and lift. Maybe some Helium as well

and how about this!?
Check the mechanism in the first few seconds. Some rotary motors and a real challenge. It reminds me of Dune's Ornichopter.


3  Topics / Science and Measurement / Re: Problems using the DUE DACs to drive a difference amplifier on: April 07, 2013, 11:31:32 am

I had some similar problems with recording data over a analog Pins

the analog pins arent that stable so by taking some samples and average it we can improve the sensors quality. For my Voltagedivider I used only one pin, First i wanted to measure over a Difference Amp but that involves extra 7805 Voltage regulator. By boosting the signal youll also improve the signals you dont want. So i left the Amp out of my design.

secondly i used 1 for loop for the calculation of a voltage divider and sampled it around 750x. the code is added in the lower section of the screen.
you can place it in the top of the Void loop.

int vn=0;
     Volt +=analogRead(pin2);
     VCalc = Volt * 0.054985713;

more is less.

sincerly yours

4  Using Arduino / Programming Questions / Uno_SD_Shield_5sensors_No_write_to_File on: March 31, 2013, 12:50:26 pm
Hello guys,

I am trying to figure out a problem or 2. i have arduino uno with a SD Card reader from Ladyada. with 5 sensors.

  • internal Temp from the uC
    LM35 Fullscale

singely each sensors works fine, now the problem is when i connect the SD cardreader to my Arduino Uno, i cant read a bit/byte of what i am picking up from the sensorreadings. If i leave out the DS18S20 from my code it starts to work fine. the SPI Protocoll and oneWire, based on the story i read from BrentT which had almost the same problem, has nothing to do which each other. so what is going on? should i check the Memory? because i am doing for each sensor a for loop of 200 to get an average. secondly i read then write at a pace of 10ms towards 1000s whereby i write to the File.

i included 2 files wereby the first one is the total code and the second the Lm35 and DS18S20.

i would really appreciate it if someone tells me what i am doing wrong, or should improve/change to check the Buffer, because i think that thats where the problem lies.

sincerly Yours


5  Using Arduino / Programming Questions / SD Shield Problem with DS18S20 or Visa Versa on: March 05, 2013, 07:00:23 am
Hello Fellow Arduinoids,

i encountered a nice problem with my Arduino Uno, and 2 DS18S20 sensors and a SD Shield.

for some reason which i dont understand, the communication between the SD Shield and writing data to a SDcard works flawlessly, but without the DS18S20. I tried them on the Digital pin 7 on a ladyada SD Shield. It creates a file then stops and doesnt show the data being written to a file. if i comment out the DS18S20 part the SD Shield will work flawlessly again. so i started looking on the Forum about the 1 Wire, and 4 Wire protocols. What i noticed is that the are included on different pins, but for some reason they still communicate with each other.

The question is how can i log data from my Temperature sensors, and show them on the Serial Monitor?

elsewise i have to go back to the all consuming pin configuration of the LM35s which will chew up 4 analog pins for a full scale measurement.
and use a not so accurate SRTC(software Real Time Clock).

I really would like to know the answers to the problem and how it can be solved. Because i think the DS18S20 are more reliable and have less heat disturbances compared to the Full scale LM35 schematics/configuration.

Tx for the replies and answers.

sincerly Yours

6  Using Arduino / General Electronics / Electro Magnetic Interference Arduino Uno, where? on: February 27, 2013, 08:57:23 am
Hello Arduino Folks,

i am building a own circuitboard LM35s and a Voltage devider from 40 to 5V ,10mm below an arduino Uno, and i was wondering where the most  EMI (electro magnetic Interference) occur on the Arduino board. so that i can place strategically the  Temperature sensors and  Voltage devider

tx for the replies and reading.

sincerly yours

7  Development / Other Software Development / stopping the i2c on: February 24, 2013, 03:01:36 pm
hello fellow arduinoids.

i have a arduino Uno, and a ladyada SD Shield with a Realtime clock on it that communicates on the pins A4,A5.

but now i changed the code using the Software realtime clock and am logging it without using the pins A4,5. the question is how do i stop the communication on the pins A4, A5? so that i can use them as analog inputs.?

secondly i removed all the code about wire.h and the rtc 1307, including the void loop and in the void setup(). but still after uploading i get 5.06V on the pins A4, and A5.

any help would be greatly appreciated.
8  Using Arduino / Project Guidance / Re: LM35 longwires and range -55 to 150C on: February 24, 2013, 01:52:51 pm
thanks a lot. that info was hard to get on the Internet.

9  Using Arduino / Networking, Protocols, and Devices / Re: I2c on: February 24, 2013, 01:50:47 pm
I commented it at first but now i removed all the library code for the RTC, the code in the setup and in the void loop. but still i get a Positiv voltage 5.07V on both of the pins A4,A5.

10  Using Arduino / Project Guidance / LM35 longwires and range -55 to 150C on: February 24, 2013, 01:10:02 pm
Hello guys,

recently if been reading about the LM35s to get a full range out of it.(check the datasheet on LM35 with full range using 2 Zdiodes.) but now the following question: if i use a Cat 5 cable do i still need 2 capacitors of 0.1uF on the 55mV pin and 150mV pin?
do i have to flip one of the capacitors?

and is there a possibility to only use one wire for the sensor in stead of using two?

sincerly yours

11  Using Arduino / Networking, Protocols, and Devices / I2c on: February 24, 2013, 01:01:05 pm
Hello Guys,

I have a full running arduino UNO rev3 + SD card Logger from ladyada with a 16Gigabyte SD card. and i want to connect to sensors Lm35s with a range -55 to 150 degrees, and a ACS709 Current sensor and a Voltage devider 40 to 5V for the analog input.

so this brings me to the total of 4 pins just for the 2 lm35s. + the current sensor and Voltage sensor (which i fool the arduino with saying that 5V--> 40V), i hope everybody is following all of this. brings me up to 6 sensor pins which i definitely need. i found out about the Software Realtimeclock and tinkered with it to get it running in my program and it works, which leaves me the 2 pins A4 and A5 free.

so i measured the A4 and A5 pins and still there is a voltage on it... which i dont like. so how do i stop the I2C communication. i tried pulling out the DC1307 and the Battery but to no avail.

how do i stop the I2C bus? and keep it free for my sensors?

sincerly yours

12  International / Nederlands / Re: BT en SD te gelijktijdig. on: January 02, 2013, 07:57:44 am
Hallo Jan, en Beste wensen Mensen!

dank je wel voor je antwoord, het heeft me wel wat dingen opgeklaard, en je hebt me in de goede richting laten denken.
alleen roept me het nog meer vragen op...waar jij misschien antwoordt op hebt.

Goed  de vraag luid: Stel je voor ik maak een scheiding in de code door software.serial op te nemen voor de BTshield de (code is identisch voor het schrijven naar een File, alleen andere Pins, de data van de Sensoren datum/tijd/spanning/stroom/Temperatuur lopen op hetzelfde moment, hoe schrijf ik dit in een Buffer? en in welke Mem sla ik dit op?   

2 Hoe zit dat met het schrijven naar een File schrijf met File.flush();?  deze heeft toch ook een beperkte buffer memory nodig voor het schrijven naar een File, en of kan ik dan beide buffers als 1 buffer gebruiken? zodat ik werk geheugen bespaar/ en geen Mem konflikten heb?/ en of zijn hier nog andere mogelijkheden? en wat is het limiet van het schrijven naar een Memory en welke is het snelste?
3 En kan ├ťberhaupt de BT Shield deze data van 2500bytes aan?

4 Wat moet ik alles veranderen? zodat het op zijn snelst loopt?

Tevens heb ik wel wat Tutorials gevonden voor snellere Data Processing en een klein beetje Memory.

Dank je wel voor de moeite en het lezen van de vragen!

13  International / Nederlands / Re: BT en SD te gelijktijdig. on: December 30, 2012, 06:48:08 am

Ik heb de Code nog eens na gekeken en dat bleek dat ik de Pins 0,1 zowel voor BT als SD gebruik...
Dat schiet natuurlijk niet op...

Oplossing was SoftwareSerial.h te implementeren. en Software matig de Pins in te stellen...


Andere vraag hoe kan ik 50 regels data van 50 bytes in 1x oversturen en is dat ├╝berhaupt mogelijk?
Of moet ik gedeeltelijke memory daarvoor reserveren?

Beste Wensen al vast!!!
en tot in het nieuwe Jaar!!!

14  Using Arduino / Programming Questions / Re: SD and BT at the same time on: December 16, 2012, 08:10:08 am
Solved the problem guys, i mixed up some BT Program, but i actually needed just the Software Serial.h and create a virtual port called BTSerial.print(values) + a Delay(100); you all put this below the Serial.flush();

ill give the example code as well so check it out.

15  Using Arduino / Programming Questions / Re: SD and BT at the same time on: December 15, 2012, 09:06:35 am
1 I compared with the Bluetooth code i had, then changed it to void init_timer2()
2 I am aware that bluetooth connection is being established in the beginning, with the baudrates and so on.
3 that code of the Pin fiddling was removed.
4 the thing is that the softwareserial should make a different connection to the board over the pins 2,3, i checked this also on the Hardware of the BT shield V2.2.
5 secondly where do i start... and do i have to work with interrupts?
6 the thing is that the code that writes to the file also should write to the BTSerial that i can take from there to the screen with my Terra Term logging program.
7 this is what i have understood of the SoftwareSerial

I really really appreciated your critism. the new file is also included.

Pages: [1] 2