Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resistor configuration #33

Open
RomarioKavin1 opened this issue May 16, 2023 · 24 comments
Open

Resistor configuration #33

RomarioKavin1 opened this issue May 16, 2023 · 24 comments

Comments

@RomarioKavin1
Copy link

What should be the resistor configuration for r1-r8 if TLCR5800 is used along with BPW96 instead of SFH4550 and TEFT4300 emitter and transistors in the wall sensor advanced board?

@micromouseonline
Copy link
Member

These resisistors are all adjust-on-test. You will need to try some values and see how you get on. The aim is to make the emitters as bright as possible without overloading them. Take care to ensure they are never left running continuously.

For the detectors, you want the lowest value load resistor that gives a good range of results. With the board placed so that the detector gives the largest possible result, that value should be no more than about 80% of full scale. In that way you have some headroom for when/if the detectors are operating in a very bright environment.

@RomarioKavin1
Copy link
Author

Can you give me the resistance values used for the Dorothy Bot?

@micromouseonline
Copy link
Member

Sorry - I gave that one away and did not write down the values.

@RomarioKavin1
Copy link
Author

RomarioKavin1 commented May 21, 2023

Hey I just Built a new UKMARS bot with the advanced wall follower module,is there any full fledged code to run it,can I get the code you used for the Dorothy bot?

@micromouseonline
Copy link
Member

There is a version of the code for four wall sensors here:
https://github.com/micromouseonline/ukmarsbot-clara

@RomarioKavin1
Copy link
Author

The link seems to be broken or the repo might be private

@micromouseonline
Copy link
Member

My mistake. Try this one:
https://github.com/micromouseonline/mazerunner-core

This is not proven code though versions of it have run successfully in robots in a number of recent contests.

It is subject to sudden, large changes so take care if you pull a version later.

@RomarioKavin1
Copy link
Author

RomarioKavin1 commented May 21, 2023

I've tried this code but it doesn't seem to be working on my advanced wall follower module , can you share any other code that is meant specifically for the advanced wall follower

@micromouseonline
Copy link
Member

It is not meant to be plug-and play. All the code is meant to be for guidance rather than a working solution.

@RomarioKavin1
Copy link
Author

I still can't seem to figure out a code solution. Is there anyway I could possibly get an alternative code? The main bot is not the issue the advanced wall follower seems to be causing problems

@micromouseonline
Copy link
Member

Perhaps you could describe in more detail exactly what the issue is?

@RomarioKavin1
Copy link
Author

No values are being read from the receiver its a constant zero

@micromouseonline
Copy link
Member

Do you have access to an oscilloscope?
If not, do you have a multimeter?

If you read zero at all times then it is likely that there is some other fault. Maybe the detectors are connected the wrong way round? With a multimeter, you should see some voltage on the detector load resistor. That voltage will change when you shine a bright light onto the detector.

@RahulRST
Copy link

RahulRST commented Jun 22, 2023

should the detector's negative terminal be connected to the board's positive terminal? because my detector is reading some values when light is shined at it but the arduino keeps reading only zero value and another issue is that my emmiter is always on but as far as I know it shouldn't do that and it should only be on when it is required by the code my led on the wall board also never seems to glow ,what coupd be the issue

@micromouseonline
Copy link
Member

We are still talking about the wall-sensor-advanced design right?
This one:
https://github.com/ukmars/ukmarsbot/tree/master/hardware/wall-sensors/wall-sensor-advanced

The detector is phototransistor. It must have the COLECTOR connected to supply positive and EMITTER connected to the load resistor. The voltage measured across the load resistor should vary with the amount of light shining on the phototransistor. Try this with the sensor board disconnected from the robot (use a jumper wire to connect only the power leads) and with it plugged in. The behaviour should be the same. If it is not, thene you may have a soldering problem on the mainboard.

While you have the sensor board disconnected, check the emitters. They should all be off. If not, you have a soldering error on the sensor board. If the emitters are always on when the sensor board is connected to the mainboard, try with the Arduino disconnected. If the emitters are still on, the problem is with the mainboard wiring. If it is only happening when the Arduino is plugged in, it is likely that you have a software problem.

@RomarioKavin1
Copy link
Author

What must be the value of the load resistor for the bpw96B photo transistor?Is there a code to just test out the wall follower module? The phototransistor when tested separately reduces in resistance when light is shined on it ,but there are no values when soldered to the pcb and tested on code. It'd be very helpful if we could get the Resistance values used in the Dorothy bot.

@micromouseonline
Copy link
Member

The schemtatic shows values of 1k8 for the detector load reistors. Start with those values. Change them as needed to get an appropriate response. Another board I have uses 1k0 load resisotrs. Every build is likely to be different a we have no control over the exact devices that you choose.

It sounds like you have the phototransistors soldered in the wrong way round.

@micromouseonline
Copy link
Member

There is sample code for nearly everything:
https://github.com/ukmars/ukmarsbot-examples
https://github.com/ukmars/ukmarsbot-mazerunner

@RomarioKavin1
Copy link
Author

RomarioKavin1 commented Jun 27, 2023

Hey,We got the wall sensor board to work .but now in our main board the function switch resistors are acting a bit weird. The values of the resistors increase slowly till they reach their actual value. Example: the resistor r1's value starts at 6.5k ohms slowly climbs to 10k ohms . This leads to inconsistent resistance values for the board while using the dipswitch. We've tried changing the resistors multiple times,We even started with a fresh pcb but ran into the same issue,the resistors show accurate resistance values once removed from the board but as soon as they are connected in series in the board this problem occurs .Any idea what the problem might be?

@micromouseonline
Copy link
Member

What did you do to make the sensor board work?

@RomarioKavin1
Copy link
Author

We recreated the schematics on a breadboard and adjusted the emitters and collector pins properly then tweaked the resistances a bit and it worked. Any suggestions for the function switch situation?

@micromouseonline
Copy link
Member

But did that result in the actual sensorboard working after you adjusted the component values.

There have been many UKMARSBOT mainboards built without these issues. The board layout and resistor values for the switches are all proven correct. I suspect either that the boards are not being soldered correctly or the microcontroller is somehow faulty. As far as I am aware, you are the only builder that has experienced these problems.

@RomarioKavin1
Copy link
Author

Were the values tested in the mainboard v1.3a

@micromouseonline
Copy link
Member

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants