Show Posts
Pages: [1] 2 3 ... 172
1  Using Arduino / Sensors / Re: Arduino and photoelectric sensor on: Today at 02:49:13 am
Hi Riva, thanks for your advice:

but .. what do you mean with "Be sure the sensor does not draw to many amps for the 5V arduino supply"? How can I do that?
From what you had written I thought you might be using the 5V pin on the arduino to power the sensor and this pin has a limit on how many mA it can supply, so be sure the sensor does not draw more than the pin should supply.


2  Using Arduino / Project Guidance / Re: How to detect length of circuit? on: Today at 02:42:02 am
But this TDC-GP22 chip: The source link you put on your other thread is outdated.  I had a chat session with the only distributor in the US, and the price they quoted me was a bit more than what you posted back in February.  Is the place where you got yours still available?
The 2K1 site is still listed on the ACAM website as the only UK supplier but the link seems dead. I do recall getting an email from some company a few weeks ago saying they had taken over 2K1 but I just deleted it as spam.  smiley-red
Maybe worth trying here but I have never used Aliexpress to comment if they are any good.
If you don't mind me asking what was the US site quoting?
3  Topics / Product Design / Re: My arduClock (#wordclock #qlocktwo) on: July 31, 2014, 08:19:35 am
Nice idea shame about it being Facebook though as I cannot see that site. Post the pictures here.
4  Using Arduino / Sensors / Re: Arduino and photoelectric sensor on: July 31, 2014, 05:38:37 am
- the brown one to the 5V power supply of the Arduino;
So the arduino is supplying 5V to power the sensor? Be sure the sensor does not draw to many amps for the 5V arduino supply.
5  Using Arduino / Project Guidance / Re: How to detect length of circuit? on: July 31, 2014, 01:01:02 am
Riva, could you tell me more (or point me to somewhere I could read) about these dedicated chips that can do 45 ps readings?  Specifically, what are they called, and how much do they cost?
The chip I am talking about is the TDC-GP22 and you can see some incomplete testing with one here.
6  Using Arduino / Sensors / Re: Arduino and photoelectric sensor on: July 30, 2014, 10:34:45 am
I've solved the problem connecting also the source of the sensor to the Arduino 5V power pin. Now it works but I'm wondering why does it work. Sensor datasheet says that voltage supply should be 10...30VDC

Could you please explain me this?
You will need to explain, draw or take picture of how you have it connected up. What colour is the 'source of the sensor' wire?
I think you should have either the white or black wire connected to a digital pin with internal pullup resistor turned on and the blue wire connected to arduino ground.
7  Using Arduino / Sensors / Re: Arduino and photoelectric sensor on: July 30, 2014, 08:28:33 am
I've connected the ground to the Arduino but the sensor doesn't work.. Maybe you have to know that this is the external power supply.
Usually these sensors have relays in and you can hear them click over from one state to the other as the sensor is uncovered/covered. Does it have a small adjustment pot on it to alter the threshold level? As long as it's only the ground your sharing with arduino you should be fine. Don't connect the 24V DC to arduino.
8  Using Arduino / Project Guidance / Re: How to detect length of circuit? on: July 30, 2014, 08:20:42 am
The best way is with time domain reflectometry:-
http://en.wikipedia.org/wiki/Time-domain_reflectometry
But not with a Uno. you can't.
But the UNO can control and read results from a dedicated chip that can do 45ps time readings.
9  Using Arduino / Sensors / Re: Arduino and photoelectric sensor on: July 30, 2014, 07:58:34 am
You will also need to connect the ground (blue) wire to your arduino ground and it looks like the signal returned is digital HIGH/LOW (light/dark) and not analogue. The threshold of where the sensor switches on the light level is usually controlled by a small potentiometer on the sensor.
10  Using Arduino / Interfacing w/ Software on the Computer / Re: Turn Serial Monitor Data into Graph? on: July 29, 2014, 09:26:59 am
Shame your not using Windows else this would probably be ideal.
11  Using Arduino / Microcontrollers / Re: PWM didn't work on Atmega8 on: July 29, 2014, 02:34:01 am
I can confirm it works for me and you also don't need the pinMode command to set a analogWrite pin to output.
Attached is an image that shows the simple setup. The LED is pulsing as per the sketch.
For you LED to work as expected when not in the final circuit points to a wiring error. Can you post the full final circuit your testing in that does not work?
Code:
void setup() {
//  pinMode(9, OUTPUT);
}

void loop() {
  for(byte x = 0; x < 255; x++){
   analogWrite(9, x);
   delay(5);
  }
}
12  Using Arduino / Networking, Protocols, and Devices / Re: Line Impedance for 75176 & Cat6 Cable on: July 28, 2014, 09:51:07 am
Find the manufacturers datasheet for your cable and you should find the info your asking for.
13  Using Arduino / Microcontrollers / Re: PWM didn't work on Atmega8 on: July 28, 2014, 09:34:56 am
I always set pinModes, my whole code
Nothing stands out to me as to why that should not work. If I get chance tomorrow I will dig out a mega8 and try the same test.
14  Using Arduino / Microcontrollers / Re: PWM didn't work on Atmega8 on: July 28, 2014, 06:10:35 am
Might be better to post your whole code instead of the single line.
Other posts I have read on this forum say you don't need to do pinMode when using a pin for analogue write but this may not be the case on older cores as used in the mega8. Did you set pin 9 to output?
Do you have a current limiting resistor on the LED else you may damage the arduino pin the LED is connected to. How is the LED wired?
15  Using Arduino / Sensors / Re: I bought 5 digital rotary encoders. 1 interrupt. on: July 28, 2014, 06:03:47 am
Haha, I was going to do a similar thing to make use of the AD9833 I now have sitting around but I will only use one encoder and make the encoder button press switch modes. I nether bothered trying frequency sweeps with the AD9833, is it any good (to lazy to write code now).
Pages: [1] 2 3 ... 172