Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 15th November 2007, 01:01 AM   (permalink)
Default

Bill,

Do not recall if anyone has pointed this out.


1 C1 22uF 16V (must be at least 16V rated)
is shown as 47 on schematic


If you used Eagle the BOM, schematic, and board would all be in sync
3v0 is offline  
Old 15th November 2007, 01:21 AM   (permalink)
Default

Ouch!

I would get 22uf to 47uf, as it appears only to interact with the MOSFET grouping and a diode and the inductor, so it appears to be a coupling capacitor (forgive me if I used the wrong term) between some stuff.

22 to 47uf would seem acceptable?
Krumlink is offline  
Old 15th November 2007, 01:48 AM   (permalink)
Default

Quote:
Originally Posted by 3v0
Bill,

Do not recall if anyone has pointed this out.


1 C1 22uF 16V (must be at least 16V rated)
is shown as 47 on schematic


If you used Eagle the BOM, schematic, and board would all be in sync
I offer the range of values for anyone building them from their own parts.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 15th November 2007, 03:30 AM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
I offer the range of values for anyone building them from their own parts.
I do not understand, thinking you did understand what I said
1 C1 22uF 16V (must be at least 16V rated)
is shown as 47 on schematic
The parts list state the cap is 22uF and at least 16V
The schematic says it is 47 and I imagine that means 47uF

Neither place does it say 22uF-47uF and 22uF != 47uF.
Maybe both will work but that is not what you have speced.
3v0 is offline  
Old 15th November 2007, 04:02 AM   (permalink)
Default

Then I'll change it in the document. Bad habit.

Edit: the Junebug Assembly Instructions have an updated BOM & Schematic.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 19th November 2007 at 02:07 PM.
blueroomelectronics is offline  
Old 15th November 2007, 09:09 PM   (permalink)
Default

I know I should look this up first, but I am not motivated:

can you run the Junebug as a debugger too?

EDIT: Yes you can, Cool!

I really like my inchworm+ it has been so good to me lately. No errors, no problems, perfect performance. Can the Junebug beat the all mighty Inchworm+? To set up the Junebug, all I have to do is to select PICKIT2?

Bill, can I run the inchworm+ off a Unicorn kit?

Last edited by Krumlink; 15th November 2007 at 09:14 PM.
Krumlink is offline  
Old 15th November 2007, 09:21 PM   (permalink)
Default

Yes, the Junebug works pretty much the same as the Inchworm+ but faster! The Inchworm+ can be mated to a Unicorn kit and would be about the same speed as Junebug. The only advantage is the Inchworm+ supports more high end PICs but that could change as the Junebug (PICkit 2) is catching up fast. Everytime Microchip releases a new MPLAB seems the PICkit 2 gets a firmware upgrade.

Of course you can use the Junebug to play with the Unicorn but it's pretty advanced compared to the Junebugs 18F1320 tutor. I've seen the Unicorn turned into a simple GLCD scope.

Having a spare PIC programmer is always handy.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 15th November 2007, 09:26 PM   (permalink)
Default

I am going to order the parts for the Junebug today. The C programming class was approved, so I was talking to him about getting some junebugs, once they become available. So far, my Junebug kit looks "interesting", as it has strange capacitors, a very oversized crystal, large 5mm LED's, very small buttons, thru hole individual resistors instead of the SIP resistors, and a diode sticking out of a solder hole way to far (the diode is a quarter of an inch in the air soldered )

Hey bill, if I send you a couple dollars in the mail (shipping), can I get a couple ferrite beads that you used? and for more money, can I get the inductor also?

Thanks

As for a kit idea for the junebug (don't know why you would need ANOTHER kit on it ), you could just have the ICD cable connect to another board above or below it for something else.
Krumlink is offline  
Old 15th November 2007, 09:33 PM   (permalink)
Default

A strange thing to do with your Junebug would be programming its own 18F2550 for another one
Krumlink is offline  
Old 15th November 2007, 11:39 PM   (permalink)
Default

I was thinking of designing a board for programming a 18 Pin DIP, and I was wondering what are some features I should have on it? I want to fill this 5x2 or slightly small board up
Attached Images
File Type: jpg 5 by 2 of emptyness.JPG (95.6 KB, 15 views)
Krumlink is offline  
Old 15th November 2007, 11:59 PM   (permalink)
Default

I just tried programming a 18F1320 with my Knight rider light (A lesson that I did myself from 3v0 ) And it worked only with a LED on the MCLR line and a resistor and ground. Here is my knight rider light code

It is in C for the 18F1320

Make sure you have header files and linker files for it

Code:
#include <p18f1320.h>
#include <delays.h>
#include <stdio.h> 
#include <stdlib.h>

#pragma config WDT = OFF
#pragma config OSC = INTIO2
#pragma config LVP = OFF
#pragma config PWRT = ON


// define TESTS
#define byte unsigned char
#define int8 unsigned char

#define CMD   0x00
#define DATA  0x01
#define READ  0x01
#define WRITE 0x00

#define TRIS_ACT_LED       TRISBbits.TRISB2 
// TRISAbits.TRISA2
#define ACT_LED            LATBbits.LATB2
// LATAbits.LATA2  


void delay_10us(unsigned char t);
void delay_ms(long t);

void delay_10us(byte t)
{
   int i;
   for (i=0;i<t;i++)
      Delay10TCYx(5);
}

void delay_ms(long t)   // delays t millisecs
{
   do
   {
     delay_10us(99);    // not 100 to compensate for overhead
   } while(--t);
}

void delay_us(long us)
{
    long x = (us%1000)/10;
    delay_ms(us/1000);
    delay_10us(x);
}    
    


void main (void)
{
  int flip = 0;
  long i,j;

  //
  // Set direction registers
  //
  //TRISA= 0x00;
  //TRISB= 0x00;
  TRIS_ACT_LED = 0; TRISA=0x00;  TRISB=0x00;

  //LAT0xA=0x00;
  //LATB=0x00;
  
  
  while (1)
  { 
    //ACT_LED = 0;
    //LATA= 0x00; 
	//The code below is what I did :) IT was really fun and easy once I learned HEX :D
    LATB= 0x01;
    delay_ms(1);
    //ACT_LED = 1; 
    //LATA= 0xFF; 
    LATB= 0x02;
    delay_ms(1);
	LATB= 0x04;
    delay_ms(1);
	LATB= 0x08;
    delay_ms(1);
	LATB= 0x010;
	//HEX was used here above and below :D
    delay_ms(1);
	LATB= 0x020;
    delay_ms(1);
	LATB= 0x10;
    delay_ms(1);
	LATB= 0x08;
	delay_ms(1);
	LATB= 0x04;
	delay_ms(1);
	LATB= 0x02;
	delay_ms(1);
	LATB= 0x01;
	delay_ms(1);
  }
}
You should be able to figure out what Ports I used
Krumlink is offline  
Old 16th November 2007, 12:16 AM   (permalink)
Default

The MCLR on the 18F1320 is an input only.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 16th November 2007, 12:21 AM   (permalink)
Default

LOL I have no idea why it flashes when I program code into it

Even so, should I keep an LED on it? It appears to not affect performance at all.

What else should I add to my board? I want to get it into design by tomorrow at least. Just a few more things I would like to add would be more Status LED's, and some other stuff that will be helpful while debugging and programming.

Last edited by Krumlink; 16th November 2007 at 12:25 AM.
Krumlink is offline  
Old 16th November 2007, 12:47 AM   (permalink)
Default

Quote:
What else should I add to my board?
Make it so there is a dip switch on PORTA (set as input). Make your program read the data on portA and move it back and forth on portB in knight rider fashion. Hint; what does the statement below do to the data in LATB?
LATB <<= 1;
__________________
--- The days of the digital watch are numbered. ---
kchriste is offline  
Old 16th November 2007, 03:25 AM   (permalink)
Default

After thinking of things to add, this is what I came up with

I am using U2 (6 pin DIP as a Switch because of its template

MCLR has a data processing LED on it
Attached Images
File Type: jpg bleh.JPG (101.3 KB, 30 views)

Last edited by Krumlink; 16th November 2007 at 03:59 AM.
Krumlink is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Junebug kit ready, (PICkit2 & tutor) blueroomelectronics Micro Controllers 37 28th October 2007 03:47 AM
Assembly? Marks256 Micro Controllers 43 28th July 2006 04:45 PM
Assembly compiler Thunderchild Micro Controllers 4 12th March 2006 02:25 PM
Learning Assembly Programming Language Johnson777717 Micro Controllers 4 22nd March 2004 03:00 PM
Assembly Language Question Jeggyman General Electronics Chat 6 30th January 2004 10:54 PM



All times are GMT. The time now is 02:29 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker