Show Posts
Pages: [1]
1  Using Arduino / Sensors / Re: Robocup Junior soccer ball sensor on: December 13, 2012, 06:00:30 pm
I compete in robocup and used that sensor before. That sensor is a digital sensor so it returns either a high or a low. Connect it to a digital pin and set up a code that reads the value of a digital pin and prints it to a serial monitor. Then get out a Roboball (Mk2) and turn it off and on in front of the sensor. I forget but I am pretty sure that it returns low when it is sensing IR. Don't worry about the frequency. I have done this before and it worked  for me. Also forget about the low pass filter and just put a 100ohm resistor between the 5v line of the arduino an d the input of the sensor.
2  Topics / Robotics / Re: RoboCup Junior Arduino-based Soccer Robots on: November 29, 2012, 06:59:18 am
i have been experimenting with TSOP1138 s. These are really good because they can see really far and they filter out ambient IR. but ordinarily they return either a high or a low. The roboball (v2) does not send out either and on or an off however. it ends out 16 different amplitudes slowly increasing in power. then resetting to zero. this means that there is a threshold in this period of time where the tsop will no longer be able to see the ball. this means that you can see distance with a digital sensor.

you connect the two pins close together to 5v and gnd with a 100R resistor on the Vs line. (the Vs line is the line connected to 5v and it is to the right when thee curve is facing you)The last pin to digital pin 2

int ir = 0 ;
int x = 0 ;
void setup() {
  pinMode(2, INPUT);

void loop() {
  while(x <= 16){
  int sensorValue = digitalRead(2);
  if (sensorValue>0){
  ir++ ;
  x++ ;
  Serial.println(ir, DEC);
  ir = 0;
  x = 0;
3  Topics / Robotics / Re: RoboCup Junior Arduino-based Soccer Robots on: November 28, 2012, 07:18:08 am
i compete in robocup soccer too
i am hoping to build an arduino robot similar to these ones.
when i get mine going i am hoping to provide extensive data on how it has been built.
if you are looking for help with cheap sensors i have already done all the hard work setting them up for my robot and i would be happy to share the program. They can see the ball from at least 5m away and can tell how far the ball is away from the sensor.
4  Using Arduino / Sensors / Re: Parallax Mouse Sensor Kit on: November 26, 2012, 11:04:32 pm
thanks mate
I have been trying to work this thing out for ages. this is a life saver i will post how my project goes.

5  Using Arduino / Sensors / Re: Parallax Mouse Sensor Kit on: November 24, 2012, 09:33:31 pm
hi. i am not very good at programming. i have one of these modules. i just ran this code and it worked really well. Can you explain how each part works so that i can use it on one of my projects. i want to make an omni wheeled robot that i can move around on the floor then it will return to it's original position.

6  Using Arduino / LEDs and Multiplexing / Re: led Cube 5x5x5 super simple on: September 10, 2012, 02:56:17 am
don't worry about the image thing it worked.
7  Using Arduino / LEDs and Multiplexing / led Cube 5x5x5 super simple on: September 10, 2012, 02:54:22 am

I was just looking for a advice in a simpler control board for my led cube. I am a complete noob and I am doing year ten at the moment so I am amazed I got this far. I want to change my control circuit on the grounds because they are very temperamental and it would be good if I could just solder an IC and a bunch of resistors to a pcb. Anything would be neater than what I have now. it the moment I have five transistors and 20 resistors so it is a bit of a mess. wires going everywhere. Also how do you insert images to these posts.
Pages: [1]