Show Posts
|
|
Pages: [1] 2
|
|
1
|
Using Arduino / Motors, Mechanics, and Power / Re: A Spark plug controlled from the Arduino - Review of guide
|
on: March 14, 2012, 02:23:02 pm
|
|
Thanks for the advice! - I will test it out and update the circuits accordingly.
I did look at the circuit in my oscilloscope and noticed some pretty hefty voltage spikes. - Probably a good idea to try to keep these down.
My high-voltage (tesla-freak) friend looked a bit concerned at my design too, so I will put in a few of his updates too.
I will submit an update when I have tested and written it. :-)
Kind regards Christian Liljedahl
|
|
|
|
|
5
|
Forum 2005-2010 (read only) / Bugs & Suggestions / Ethernet example - google ip fault
|
on: November 15, 2009, 08:18:25 pm
|
Regarding http://www.arduino.cc/en/Reference/Ethernet and all the client examples showing how to search google. It seems like, that the address in the examples: 64.233.187.99 is not available anymore - at least not in Denmark. There is no respons from the server - just timeout. (Yes, I tried it in a browser too :-) ) Since this is a hello world example, it would be great to add to the example, that the google address might not be available, and that it is best to do a nslookup google.com on your computer, and put that address in the example. (Where I get 74.125.45.100 ) I would love to do the change myself, but it seems like the wiki is closed..? Best regards Christian Liljedahl
|
|
|
|
|
9
|
Forum 2005-2010 (read only) / Interfacing / Re: LIS302DL 3Axis Accelerometer I2C
|
on: February 14, 2009, 09:33:32 pm
|
Thanks for the nice i2c example - good for getting started. I have a few experiences with the LIS302DL that I think should be shared. Voltage: Don't overdo it. At first, I just send 5V from the arduino board to Vcc on the chip, as suggested in this article. But I experienced the accelerometer randomly going dead. Then I made a voltage devider with two 2k7 and gave it 2.5 v, and now it runs flawlessly. Pull up - not needed?I didn't bother to put pullup-resistors on the 4 and 5. It seems to be no problem to skip them. Remeber - 4 and 5 is ANALOG pinsThat i2c is on analog pin 4 and 5 is probably obvious, but it took me some time and frustration before I realized my error. Don't connect to 4 and 5 digital..  My few cents on this. Might post some code when the project moves on.. Best regards Christian Liljedahl
|
|
|
|
|
11
|
Forum 2005-2010 (read only) / Interfacing / Re: How to fade an LED up and down without using delay
|
on: February 18, 2009, 02:04:47 pm
|
A thing to remember: int has a range of -32,768 to 32,767. 32767 milliseconds = 32 seconds. Meaning: After 32 seconds, your lastTimeItHappened = millis() will behave strange ALLWAYS use the type long or even better unsigned long when you work with millis() that way. unsigned long has a range of 0 to 4,294,967,295 giving you about 50 days of runtime before things get strange! Good luck C
|
|
|
|
|
12
|
Forum 2005-2010 (read only) / Interfacing / Re: How to fade an LED up and down without using delay
|
on: February 16, 2009, 12:24:18 pm
|
This is a simple example I use: Basicly the idea is: - Use millis() to get the "time" - Use a sin/cos function to determine the fade-level of the diode. Benefit of using sinus is, that you get a much more smooth and pretty fade. Linear fade is dull. :-) int value, value2 ; int ledpin = 10; // light connected to digital pin 10 int ledpin2 = 11; // light connected to digital pin 11 long time=0;
int periode = 2000; int displace = 500;
void setup() { // nothing for setup }
void loop() { time = millis(); value = 128+127*cos(2*PI/periode*time); value2 = 128+127*cos(2*PI/periode*(displace-time)); analogWrite(ledpin, value); // sets the value (range from 0 to 255) analogWrite(ledpin2, value2); // sets the value (range from 0 to 255) }
|
|
|
|
|
14
|
Forum 2005-2010 (read only) / Interfacing / Receive data from multiple arduino boards wireless
|
on: February 14, 2009, 08:50:22 pm
|
|
I have a project, with 6-10 arduino boards in different locations reading sensor data (accelerometer). I want to collect these data as realtime as possible (within ms), and I want to do it wireless. With RF or .. something.
Maks transmitting distance is around 50 meters. Each arduino board sample / transmit data at 400 hz
I could imagine one of the RF-modules could be used, but that is typically only 1 to 1. I need 6 to 1.
Do anyone have a good suggestion for a solution to this?
All the best Christian Liljedahl
|
|
|
|
|
15
|
Forum 2005-2010 (read only) / Interfacing / Lego nxt ultrasonic sensor - Any success?
|
on: October 01, 2008, 12:27:57 pm
|
|
Hi I have been trying to get a lego nxt ultrasonic sensor (rangefinder) to work with arduino, but have yet been unsuccessfull. The US communicate with i2c, but it seems to not want to react to the commands i try to send to it with wire. I have tried many many combinations, allso bitshifted. But I have not been able to desichper what exactly it needs.
I can make my arduino work as a slave i2c-device connected to the nxt-brick and read out what it is sending.
But I fear, that somehow wire sends out "stuff" that the US does not like.
Have anyone successfully done this?
Best regards Christian Liljedahl
|
|
|
|
|