Micromouse sensor

Hello there good people.
I have been working on a micromouse for some time. I have most of the things figured out, but I do not have clear idea about the sensors.
I am making the mouse out of scratch. I have been using 5 HW201 obstacle sensors but that requires too much space. So I looked into other top notch mice, and it seems like they use the emitter and phototransistor and make the sensor(!) I am not quite sure. So i am planning to do the same.
The emitter and receiver I chose are TSAL6100 and ST-1KLA.
What do you recommend? Is this a good idea?
I do not have access to any PCB right now. I will solder everything on a veroboard that i am using as a chassis.
Also I am using a STM32 blue pill, TB6612FNG, 2 gear motors with encoders, 7.4v 500mAh battery etc etc.. I have plans to use mpu6050 later if everything goes fine.
TIA :slight_smile:

You can prototype this on veroboard. Mount emitter and detector pairs facing the right direction. Shield the sides with black plastic tubing or heat-shrink to avoid crosstalk. Solder analog filters (capacitors) if noise is an issue

1 Like

Please describe the surface your mouse will be watching! What sort of signal are expecting to see from your mouse?

Are you looking for a line follower module or making your own circuit(s)?

It doesn't sound like a crazy choice. Only way to know is to try them, experiment, and see what you can achieve.

I would suggest connecting the receiver between an Arduino/STM32 analog input pin and ground. Attach a pull-up resistor between the pin and 3.3V. Use 10K resistors to begin and experiment with different values to see whether they give better results.

For the emitters, first try powering them directly with an STM32 output pin. Choose a series resistor value so that you don't exceed the max current of the output pin. This may be significantly lower than the current that an Uno or Mega pin can provide, so don't assume anything and look it up.

The current from the pin may be too much and saturate the receiver. If so, experiment with higher value series resistors.

If you have the opposite problem and need more current, you can connect the led directly to the 3.3V pin and use a lower value resistor, so long as you don't exceed the max current of the led. However, this may drain the mouse's batteries too fast. If that's true, there are ways to fix the problem, but try the direct pin connection first.

If you are building a Micromouse, I assume the sensors will be to detect maze walls around it. They are usually painted white, so they will be more reflective.

The minimum you need is for the sensors to detect if there is or isn't a wall within a short distance of the sensor. With careful design, you may be able to estimate the approximate distance to the wall by measuring how much reflected light is received. This may give your mouse some advantages later, helping it avoid scraping the walls, and help to map the maze a little faster.

1 Like

Just received the components in the mail. I will be testing them. Thank you very much for your advice.

Thank you very much.

White walls.

I am trying to make my own.