How about re-doing the scheme and posting it again, in the first post, if that is possible... , so that anyone trying to build it doesn't face the same problem; maybe they don't read the whole 3 pages of posts to see that there is a problem with it!
How about re-doing the scheme and posting it again, in the first post, if that is possible... , so that anyone trying to build it doesn't face the same problem; maybe they don't read the whole 3 pages of posts to see that there is a problem with it!
But you can see clearly that the pdf is a print from OrCad or something that the circuit was made, so it has to be the one that the pcb was made of!
That's right. I normally start off with something roughly hand drawn, sometimes nothing on paper at all - working directly off the top of my head, build a prototype then proceed to document it.
Hi Magu,
For now use the seven 180 ohm resistors while testing.
You will replace these resistors with the original 18 ohm
resistors when the system works.
While testing with the 180 ohm resistors:
Once the LEDs are driven by the PIC it might be that, in order
to see the LEDs, you will have to reduce the light in the room
where you are testing. This will not be necessary once you replace
the 180 ohm resistors with the original 18 ohm resistors.
* * *
Modify your PCB, connect the pin 15 of IC3 to the
pin 10 of IC7 via the 100k series resistor which is already
present on the schematic.
Place a 100nF capacitor close to each IC present on the circuit.
This capacitor is connected to the pins VDD and GND of the IC.
This capacitor must be close to the ICs. (Max. 10mm).
Program the microcontroller with the HEX file posted by Trent in
the first post of this thread.
Plug all the ICs in their sockets. Follow the instructions posted
by Trent. Power on the board and the circuit should work.
Best regards,
Luciano
Last edited by Luciano; - 17th June 2007 at 11:11.
it dosen`t work. i program the pic with ICPROG (plug the programer in serial port, open hex file, -> PRogram all)
. these is a picture of the board with all the components included the caps. http://www.zamfirelu.org/led/board.jpg
Hi Magu,
Remove the jumper "program". Do not use a jumper, use a push button.
Best regards,
Luciano
Hi Magu,
Disconnect the serial cable from the board.
The RX LED1 must stay ON after you release the push button "Program".
If the LED1 does not stay ON after you release the push button "Program",
then the program is not running in the PIC.
Note that when the serial cable is connected to the board, and you press
the "Program" push button, the LED will stay ON until the first 4 bytes are
received. (Until you press the button "Program Message To The Display EEPROM"
in the VB Application). After that the first 4 bytes are received, the LED is
toggled and will be toggled again after the next 4 bytes are received continuing
in the same way until the last byte of the message is received. So the LED is
blinking while receiving the data from the PC.
Again, with the serial cable disconnected, the RX LED1 must stay ON after you
release the push button "Program". If not, then the program is not running in the PIC.
Trent, can you please confirm my last sentence?
Best regards,
Luciano
maybe i am wrong, but when i load the .hex file in icprog, the oscilator is set to XT, but the datasheet from http://ww1.microchip.com/downloads/e...doc/40044b.pdf on page 97 says that for a 10Mhz oscilator, one should use HS. Am i wrong? Is the watch dog timer really necessary here? 10q
Hi Magu,
Yes, with a 10MHz crystal you must use HS.
The Watchdog Timer should be set to ON for PicBasic Pro programs.
* * *
What you can do:
If you have an oscilloscope you can test if the 10MHz crystal oscillator
is working. (Connect the oscilloscope probe to the PIN 15 OSC2/CLKOUT).
Also possible:
Remove all the ICs from the board with the exception of the PIC.
Program the PIC with a program that will make the LED1 on RA4 blink.
You will have to write a program yourself or find someone willing to do it for you.
(Note that you can use any programming language). Program the PIC with the HEX
file you get after compiling your program. Once you get to "blink LED1 program" running,
try again to program the PIC with the HEX file posted by Trent.
I don't use PIC microcontrollers so I cannot help you further.
Best regards,
Luciano
Last edited by Luciano; - 17th June 2007 at 15:05.
I don`t have PicBasic Compiler, it`s cost a lots of money. There it`s Another way to solve this problem ? .
I have realize when do i connect the the power wire without the serial wire, i press the program button, the led stay lit, but in 5-6 sec stops, and then again stay lit and on the led display the fisrt led on first ROW and seond ROW are lit. something is wrong.... but i don`t know what...
The PBP demo would work to program enough of a program to test a row or column then the next row or column. A good avenue suggested by fazan83.
Please read posts from Eng4444 (I sure miss him)
Dan Cata, do you think someone would post that much work, just to able to trick people. I guess many do not realize how many hours must have been involved in this project before posting it. Any project even simple ones, has a chance of the equivalent of a “typo”. The more and more circuitry involved cause the chance to be extremely large. Magazines have editors, proofreaders that check for these oversights. Magazines ALL have error pages in the next issue, about errors in the previous issue.
Luciano, Thank you for your “seeing the bigger picture”. You have set an example for all of us on the forum. You have the right spirit and we salute you. Your tutorial step by step “trouble shooting” postings will be a great guide for future “new-bies”. These posts show, not only how to methodically, break down the process step by step, but how many steps are involved in the algorithm of “trouble-shooting”. I learned a great deal from your logical process, it is a work of art.
-Adam-
Last edited by Melanie; - 18th July 2007 at 19:18. Reason: to remove bad link
Ohm it's not just a good idea... it's the LAW !
it can be a mistake when build the pcb of the board. for those who has the ORCAD Layout Plus i attach the pcb.
I no longer have ORCAD on my machine, so can you convert it as a .DWG, DXF or gerber 274 or use PrimoPDF to convert it to a PDF?
Primo PDF will act as a printer, so you just need to print the document, but choose PrimoPDF as printer.
Download link: http://www.download.com/3000-10743_4-10660924.html
Nice and free tool
Last edited by mister_e; - 17th June 2007 at 23:57.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
the yellow nets are not connected yet because i have to find space...
Hi Magu,
During our test we have complitely tested the 245 LEDs, 42 Transistors,
and all the ICs listed below and all their connections.
IC3 (complitely tested)
IC4 (complitely tested)
IC5 (complitely tested)
IC6 (complitely tested)
IC7 (complitely tested)
IC9 (complitely tested)
We have also tested these pins and connections of IC1:
RA2 (PIN1) ---- ROW1
RA3 (PIN2) ---- ROW2
RB4 (PIN10) ---- ROW3
RB3 (PIN9) ---- ROW4
RB0 (PIN6) ---- ROW5
RB2 (PIN8) ---- ROW6
RB1 (PIN7) ---- ROW7
RB5 (PIN 11) ---- CD4017 RESET
The rest of the circuit can be tesetd in five minutes with an ohmmeter.
* * *
What about the 12V power supply?
What is the current of the used 12V power supply?
Is the 12V power supply a DC power supply?
Can you post a picture of the 12V power supply?
Can you post a picture of the 5V voltage regulator circuit? (The board).
* * *
Originally Posted by magu:
have realize when do i connect the the power wire without the serial
wire, i press the program button, the led stay lit, but in 5-6 sec stops, and
then again stay lit and on the led display the fisrt led on first ROW and
seond ROW are lit. something is wrong.... but i don`t know what...
This is not possible. With the serial cable disconnected, after you have
briefly pushed the program button, the LED 1 will be lit (ON) forever.
This is because in the program, the PicBasic Pro SERIN command will wait
the character "a" forever. (Note that no timeout is used in SERIN, therefore
the program will wait forever).
This is the line of code that will make the program wait the character "a" forever:
In the program, before the SERIN line, the LED 1 is lit by the following code,Code:SERIN PORTB.7, N2400, ["a"], DataBuffer
where first the pin is set as output and then the pin is set to LOW.
(Note tha the RA4 sinks current so this is why "0" will lit the LED).
* * *Code:OUTPUT PORTA.4 ActivityLED = 0
Download the PicBasic Pro demo and write a program that makes the LED 1 blink.
Program the PIC with the HEX file, remove all the ICs from the board and
see if the LED 1 blinks. If you do that, then you will know that the 10 MHz crystal oscillator
works, that your programmer works and that the FUSE bits are correctly set.
The PicBasic Pro demo is limited to 31 lines of source code.
With 31 lines of code you can write a program that will make the LED 1 blink
and you can also write a program that will test any single LED of the board.
If you do that, make sure you use the seven 180 ohm resistors.
Here you can download the demo:
http://www.melabs.com/pbpdemo.htm
Best regards,
Luciano
Last edited by Luciano; - 18th June 2007 at 10:20.
Hi Magu,
The +5V from the power supply of the computer should be OK.
Make sure you use a cable with 0.75mm² or 1mm² wires and that
the cable is less than 2 meters.
Connect a 470µF capacitor to the +5V on the board with the PIC
and a 470µF capacitor to the +5V on the board with the LEDs.
Best regards,
Luciano
Hi Steve,
Can you please review the code below?
The code will be compiled with the demo version of PicBasic Pro.
We need this code in order to test the Odyssey II board.
I hope Ithaca is not too far away!
Thank you!
Best regards,
Odysseus (Ulysses) Luciano
Code:' File name: mblink.bas ' Target: 16f628A ' Compile the file from the command line: pbpdemo.exe -p16f628a mblink.bas ' ' ' +5V ' | ' _|_ ' _\_/_ LED 1 ' | ' RA4-----/\/\/\----+ ' 300 ohm ' ' Define OSC 10 ' 10 MHz crystal used. CMCON = 7 ' Disable comparator, set PortA in digital mode. OUTPUT PORTA.4 ' Set RA4 as output loop: Low PORTA.4 ' Turn on LED 1, the pin RA4 sinks current. Pause 500 ' Delay for .5 seconds. High PORTA.4 ' Turn off LED 1, the pin RA4 floats, (RA4 open drain output). Pause 500 ' Delay for .5 seconds. Goto loop ' Go back to loop and blink LED 1 forever. End
This has to work. But i would add the Configuration fuse line at the top.
I hope the Demo Allow that...
Code:<font color="#008000">' File name: mblink.bas ' Target: 16f628A ' Compile the file from the command line: pbpdemo.exe -p16f628a mblink.bas ' ' ' +5V ' | ' _|_ ' _\_/_ LED 1 ' | ' RA4-----/\/\/\----+ ' 300 ohm ' ' </font><font color="#000080">@ device pic16f628A, hs_osc, lvp_off, mclr_off, pwrt_on, cpd_off DEFINE </font>OSC 10 <font color="#008000">' 10 MHz crystal used. </font>CMCON = 7 <font color="#008000">' Disable comparator, set PortA in digital mode. </font><font color="#000080">OUTPUT </font>PORTA.4 <font color="#008000">' Set RA4 as output </font>loop: <font color="#000080">LOW </font>PORTA.4 <font color="#008000">' Turn on LED 1, the pin RA4 sinks current. </font><font color="#000080">PAUSE </font>500 <font color="#008000">' Delay for .5 seconds. </font><font color="#000080">HIGH </font>PORTA.4 <font color="#008000">' Turn off LED 1, the pin RA4 floats, (RA4 open drain output). </font><font color="#000080">PAUSE </font>500 <font color="#008000">' Delay for .5 seconds. </font><font color="#000080">GOTO </font>loop <font color="#008000">' Go back to loop and blink LED 1 forever. </font><font color="#000080">END </font>
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi Steve,
Yes it does and IC-Prog 1.05E recognizes the configuration word.
Thank you!
Best regards,
Luciano
Good news!
Bienvenue Luciano, bonne chance
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi Magu,
Paste the code below in the Windows editor "Notepad" and save the
file using the name mblink.bas. Save the file in the folder where you
have installed the demo of PicBasic Pro.
(The default is "C:\PBPDEMO\").
Code:' File name: mblink.bas ' Target: 16f628A ' Compile the file from the command line: pbpdemo.exe -p16f628a mblink.bas ' ' +5V ' | ' _|_ ' _\_/_ LED 1 ' | ' RA4-----/\/\/\----+ ' 300 ohm ' @ device pic16f628A, hs_osc, lvp_off, mclr_off, pwrt_on, cpd_off DEFINE OSC 10 ' 10 MHz crystal used. CMCON = 7 ' Disable comparator, set PortA in digital mode. OUTPUT PORTA.4 ' Set RA4 as output loop: LOW PORTA.4 ' Turn on LED 1, the pin RA4 sinks current. PAUSE 500 ' Delay for .5 seconds. HIGH PORTA.4 ' Turn off LED 1, the pin RA4 floats, (RA4 open drain output). PAUSE 500 ' Delay for .5 seconds. GOTO loop ' Go back to loop and blink LED 1 forever. END
Open a command shell window, change directory to C:\PBPDEMO and type:
pbpdemo.exe -p16f628a mblink.bas
This will compile your program and you will get the HEX file MBLINK.HEX.
Remove all the ICs from your board. With IC-Prog program the
PIC 16F628A with the file MBLINK.HEX. Once you have done that,
with IC-Prog VERIFY the chip. Once you are sure that the chip
is programmed OK, plug the PIC in the socket 1 and power up the
board. If everything is OK, you will see the LED 1 blink forever.
(Click to enlarge the picture).
Best regards,
Luciano
Last edited by Luciano; - 19th June 2007 at 11:19.
The led doesen`t blink coreclty. It toggle, then stay lit 3 sec, blink again and so on. Maybe the pic is not good or the crystal.?
Hi Magu,
This the reason why we are testing with this LED 1 blink program.
With this program you can verify if the PIC and its 10 MHz crystal oscillator work.
Try that: (In order)
- On the socket of IC1 solder a 100nF capacitor between the pin 14 (VDD) and pin 5 (GND).
(You should already have one close to the PIC, solder a second one on the above pins).
- Test if the LED 1 blinks.
- Replace the two 22pF capacitors.
- Test if the LED 1 blinks.
- Replace the 10 MHz crystal.
- Test if the LED 1 blinks.
- Replace the PIC. (Program a new PIC with MBLINK.HEX).
- Test if the LED 1 blinks.
- Use a different +5V power supply. (Make one with a voltage regulator 7805).
- Test if the LED 1 blinks.
* * *
When you program the PIC with the program IC Prog follow the steps visible in picture below:
Do not modify the fuses which are automatically set by the file MBLINK.HEX.
The PIC is programmed OK only if the VERIFY step is successful!
Best regards,
Luciano
I made o small board showd in the picture attach and it works fine but the led stay lit. doesen`t blink foverer. And the led with the res doese`nt need to be conneted to Ra3 ? . I can`t find the datasheet for the crystal....
Last edited by magu; - 19th June 2007 at 20:05.
Hi Magu,
This circuit will work with our program MBLINK.BAS.
Please seek help locally, find a PIC expert in your country willing to help you.
Good luck!
Best regards,
Luciano
Hi Trent,
Yes, this is a bad habit. All this discourages people from posting.Far as I'm concerned this thread has been completely hijacked with 4 pages of junk carrying
a user rating of 1.8 out of 5.
There were three people reporting a problem with this project and indeed there was a problemI don't consider the cries for help to be even the slightest bit genuine. That's the sickening part.
with the schematic and we managed to find it.
Are Magu's cries for help genuine?
In my opinion yes.
Look at the picture posted by Magu:
(Click to enlarge the picture).
CPU board: (Picture)
Magu is not an expert, the decoupling capacitors were added in
a second time despite this was the second board he made.
Display board: (Picture)
The alignment of the LEDs, transistors and resistors was done with
great care. (All the components were soldered perpendicular).
What are my conclusions?
Little theoretical knowledge, but good perseverance.
The same can be said for his posts in this thread.
* * *
I was able to help him to partially test the board he made.
I have never used PicBasic before and I have never developed anything
using PIC microcontrollers. All I know about PicBasic and PIC microcontrollers
is based on personal researches done while evaluating them.
This is why I had to suggest him to find somebody in his town
willing to help him program the chip and test the board.
Best regards,
Luciano
i`m very sorry for the delay but i was in vacantion, later i will post the result of the PIC...
Bookmarks