Hello, all. I have simple question, Brad creat "32X64 PIXEL RGB POV" in this project he use OptoCoupler(Opto switch) and he said "This photo shows the sensor circuitry and the nail that passes through the sensor to tell it when to start drawing each frame." So my question is: How work this OptoCoupler, where it connects.(maybe to RA5/MCLR, but then always microcontroller reset, program will start again to 000x0 address). And other question is: How to write in program to tell it when to start drawing each frame. ( I trying make similar project 8X85 RGB LED POV display). Thank you for your answers.
P.S. Sory for my english. GedasK
Simple question OptoCoupler
Moderators: Chuckt, Garth, bitfogav
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Simple question OptoCoupler
You have have a look at the 8x85 pov schematic for how to make the opto coupler,
As far as how it works though is that it can connect to any input pin and in your code, once you have drawn one frame, you then stay in a constant loop where the only thing the micro controller does is checks for a logic 1 from the sensor.
When it does get that logic 1 it means it has just passed the sensor and it will then go out of the loop and then draw the next frame.
Hope tht helps!
As far as how it works though is that it can connect to any input pin and in your code, once you have drawn one frame, you then stay in a constant loop where the only thing the micro controller does is checks for a logic 1 from the sensor.
When it does get that logic 1 it means it has just passed the sensor and it will then go out of the loop and then draw the next frame.
Hope tht helps!
-
- newbie
- Posts: 4
- Joined: Wed Mar 09, 2011 7:20 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Simple question OptoCoupler
Hello, Brad thank you for your help and answer.
So my problem is:
1) Then i turn on PCB all leds turn on and not blinking.
So my problem is:
1) Then i turn on PCB all leds turn on and not blinking.
Last edited by GedasK on Fri May 20, 2011 7:48 am, edited 2 times in total.
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Simple question OptoCoupler
1) 7.5v 1.2 amps is plenty for this projectHello, Brad thank you for the help and answer it's work then i try make in proteus program . But Today i almost finish the project and i have big problem. So maybe you or somebody can help and explain what is wrong (maybe you have the same problem then you first time start PCB). So my problem is:
First of all I use Switching power supply 7.5 V 1,2A. (Maybe problem is not enough power on PCB)
2) Then i turn on PCB all leds turn on and not blinking.
3)In PCB i use voltage stabilizator L7805CV. (then i remove this item, problem not disappear)
2) The LED's won't blink until you get a logic one to the sensor input pin (from the sensor) can you confirm that your sensor outputs a logic 1 when you place something in between the sensor?
3) Make sure you use your 7805 regulator! you don't want to blow up your microcontroller or chips
-
- newbie
- Posts: 4
- Joined: Wed Mar 09, 2011 7:20 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Simple question OptoCoupler
Thanks you again.1) 7.5v 1.2 amps is plenty for this project
2) The LED's won't blink until you get a logic one to the sensor input pin (from the sensor) can you confirm that your sensor outputs a logic 1 when you place something in between the sensor?
3) Make sure you use your 7805 regulator! you don't want to blow up your microcontroller or chips
1) Yes i use Swithing Power suply and i can turn on 6V, 1500mA
2) Maybe i can turn off this, maybe i can clear from programing code few line and the microchip no need logic 1, just for check, because i really don't know i have logic 1 or no
3) Yes i really use 7805 i check with multimeter.
So then i turn on The PCB all RGB Led turn on, (1 - 2: RED and GREEN, 3-8: RED, GREEN, BLUE lights) but i think they can't turn on then the microship don't have logical 1.
-
- newbie
- Posts: 4
- Joined: Wed Mar 09, 2011 7:20 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Simple question OptoCoupler
One more idea maybe microchip not working correctly, because in RA5/MCLR/VPP pin going 5Volts, and then the device will enter Programming mode. So maybe i need put in this pin less voltage and i got logical 1 and then microchip start blinking LED's?
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Simple question OptoCoupler
It should certainly work if you get rid of the code where it waits for the sensor. Although, do you have a logic probe to test the output of the sensor with?GedasK wrote: 2) Maybe i can turn off this, maybe i can clear from programing code few line and the microchip no need logic 1, just for check, because i really don't know i have logic 1 or no
So then i turn on The PCB all RGB Led turn on, (1 - 2: RED and GREEN, 3-8: RED, GREEN, BLUE lights) but i think they can't turn on then the microship don't have logical 1.
The MCLR pin should be disabled in the code so it should not actually reset.One more idea maybe microchip not working correctly, because in RA5/MCLR/VPP pin going 5Volts, and then the device will enter Programming mode. So maybe i need put in this pin less voltage and i got logical 1 and then microchip start blinking LED's?
Who is online
Users browsing this forum: No registered users and 5 guests