Tuesday, August 3, 2010

Generating Eagle PCB in 3D



POVRay 3D can be used in cooperate with Eagle PCB to generate a 3D view of the PCB that we have designed. This will give us a better look on the PCB and component layout before we finalized the PCB for fabrication.

To use POV-ray:

  1. Click Tools -> Edit master POVRAY.INI

  2. A notepad file should load up. At the very bottom of it, add this line:

  3. Library_Path="C:\Program Files\Eagle3D\povray" (depending on where you install the file)

  4. Press on Render button in POV-ray

  5. You should get the 3D view of your PCB. Cheers ~~

Digital Logics

Monday, July 5, 2010

Potyo v2



potyo2



External Triggering Using ICD 2



Based on some experiments from NIEDZIELSKI.COM, it is said that external triggering can be archived by simply sending a pulse to PGC and PGD simultaneously as shown in the diagram.

Here is the sample code provided:

/*******************************************************************************
PIC18F4550 infinite breakpoints C example.
Created:  Wednesday, October 3, 2007 [Stephen Niedzielski]
Modified: Wednesday, October 3, 2007 [Stephen Niedzielski]
*******************************************************************************/

/****************** Includes. ******************/
#include <p18f4550.h> /* PIC18F4550 symbolics. */

/****************** Configuration bits. ******************/
/* Watch dog timer disabled. */
#pragma config WDT    = OFF
/* PORTB 4:0 digital IO. */
#pragma config PBADEN = OFF

/****************** Macros. ******************/
/* Breakpoint. */
#define Break(); \
PORTBbits.RB0 = 1; \
PORTBbits.RB0 = 0; \
Nop(); \
Nop();

void main(void)
{
/****************** Watch dog timer setup. ******************/
/* Disable the watch dog timer. */
WDTCONbits.SWDTEN = 0;

/****************** Breakpoint setup. ******************/
/* Turn off RB0 and RB1. */
PORTBbits.RB0 = 0;
PORTBbits.RB1 = 0;
/* PORTB digital IO on all channels. */
ADCON1 = 0x0F;
/* RB0 to output, RB1 to input. */
TRISBbits.TRISB0 = 0;
TRISBbits.TRISB1 = 1;

/* Wait for input on RB1. */
while( !PORTBbits.RB1 )
{
}

Break();
Nop(); /* Pop out of breakpoint here. */
Nop();
Nop();

}

*try it at your own risk :)

Thursday, May 13, 2010

Pickit 2 Clone

   PICKIT 2 CLONE




   
Pickit 2 clone is a low cost homemade pickit 2 that has similar microcontroller support: baseline (PIC10F, PIC12F5xx, PIC16F5xx), midrange (PIC12F6xx, PIC16F), PIC18F, PIC24, dsPIC30, dsPIC33, and PIC32 families of 8-bit, 16-bit, and 32-bit microcontrollers, and many Microchip Serial EEPROM products. T