Welcome to ...

Electric Chili is all about electronics, personal finance, life, hybrid vehicles, and of course chili. Why is your blog about so many things? Well, I used to have several blogs and I found I couldn't keep up with all of them. The maintenance began to take the fun out of it. So now I'm putting everything right here!

Blog archives for December, 2007

December 18, 2007

Eliminate Junk Mail (or at least reduce it)

Just ran across this link.  If you’re tired of receiving tons of direct mail advertising aka. junk mail, you can register at this site and opt out of the ones you want or opt in to lists that you’re not on.  The bummer is that it’ll cost you $1 for it.  In my book it’s a great investment, however  Just think of the time you spend sorting through the crap that comes in the mail.  You’re forced to open every one of them because they intentionaly make themselves look like bills.  Check it out…

https://www.dmachoice.org/MPS/mps_consumer_description.php#how_to

December 16, 2007

Opt Out of Prescreen Credit Card Offers

I’m not sure how many people are aware of this so I thought I’d share.  I used to get TONS of credit card offers in the mail.  On a daily basis I would get probably three or four letters.  Capital One was the biggest offender.  They would send me a letter practicaly every day.  Well, that has all stopped now.  I went to the Opt Out web site and registered.  Now the only credit card solitations that I recieved are from the one card the I carry.  Those are still annoying but the volume has been reduced dramatically.  Here’s the government link for more information which also includes the opt out link.

btw….do you know that one of the ways crooks rip you off is by stealing the credit card checks from you mailbox?  Opting out reduces that chances of that happening.  Also, it’s a good idea to empty your mailbox everyday since these thefts typically happen at night.  Here’s the link…..http://www.ftc.gov/bcp/conline/pubs/credit/prescreen.shtm

December 9, 2007

Home Inventory Software

I think for 2008, one of my goals is to do a thorough job inventoring the home.  I’ve talked with people that didn’t do this and ended up with major problems trying to recover a loss.  I haven’t tried this softward yet but I’ve heard from others that its very easy to use.  Here’s the link…

Know Your Stuff

December 8, 2007

PWM for the PIC18F1330

Here’s a little example code for the PIC18F1330 that generates 3 different PWM signals.  It’s done with MPLAB and HI-Tech’s PICC-Lite compliler.  It’s probably a little over done in that I wanted to be able to just enter a decimal value for each of the duty cycles.  That resulted in some code that is a little memory intensive.

Logic Trace of PWM’s

I just picked up the CCS compiler and my understanding is that the CCS libraries will allow me to do a little more with less.  I plan on writing some code for comparison.  I’ll post it when I’m finished.

First, here’s the configuration …put this in a separate file called configuration-word.h.

configuration-word.h

Here’s the Main loop…

main.c

You’ll see wnen you examine it that I should have put some of the code into functions.  That would have helped it’s size conserably.  Oh well, maybe another time.

Rich Dennison

Hello World for the PIC16F690

If you’ve purchased a PICkit 2 from Microchip you’re probably anxious to get started.  I believe the kit comes with the assembly code to blink the LED’s on the board.  Well, that’s great for assembly programmers but what about those of us who prefer C.  Below is a few lines of code that works with the PICkit 2 using the free Hi-Tech PICC-Lite compiler and the PIC16F690.

PICKit 2

 __CONFIG(FCMEN & IESODIS & BORDIS & UNPROTECT & MCLRDIS & PWRTEN & WDTDIS & INTIO & INTCLK);
int i;
int j;
main()
{
    PORTC = 0;
    TRISC0 = 0;
    TRISC1 = 0;
    TRISC2 = 0;
 TRISC3 = 0;
 OSCCON = 0b01100111;
 
  while (j<3)
    {
        for (i = 0; i < 5500; i++);
        RC0 = 0;
        for (i = 0; i < 5500; i++);
        RC0 = 1;
        for (i = 0; i < 5500; i++);
        RC1 = 0;
        for (i = 0; i < 5500; i++);
        RC1 = 1;
        for (i = 0; i < 5500; i++);
        RC2 = 0;
        for (i = 0; i < 5500; i++);
        RC2 = 1;
  for (i = 0; i < 5500; i++);
        RC3 = 0;
  for (i = 0; i < 5500; i++);
        RC3 = 1;
     for (i = 0; i < 5500; i++);
        RC2 = 0;
        for (i = 0; i < 5500; i++);
        RC2 = 1;
        for (i = 0; i < 5500; i++);
        RC1 = 0;
        for (i = 0; i < 5500; i++);
        RC1 = 1;
       j=j+1;
 }

 j=0;
 while (j<5)
    {
        for (i = 0; i < 8500; i++);
        PORTC=0b001001;
  for (i = 0; i < 8500; i++);
        PORTC=0b000110;
  for (i = 0; i < 8500; i++);
        PORTC=0b001001;
  for (i = 0; i < 8500; i++);
        PORTC=0b000110;
  j=j+1;
    }

December 6, 2007

Regenerative Braking

So when your neighbor comes over to check out your new hybrid car – tell him about the brakes! 

While it’s true that most cars have a complex braking system especially when you consider anti-lock systems, they just aren’t as cool as the regenerative braking systems on hybrid electric vehicles.  Why regenerative braking?  Well, it really comes down to a balance between electrical power required for all vehicle systems and the power that the battery can supply over time.   When your hybrid is operating purely on battery power you are taking away the reserves of your battery.  It needs to be replaced eventually.  This battery charging process occurs during the drive cycles when the engine is running at cruising speeds.  The engine turns the generator and it supplies electrical power back to the battery.

So what does this have to do with your brakes?  Well, the engineers that have developed this complex system have determined that the time charging the battery in the engine driven drive cycles may be too infrequent for some drivers.   Under this scenario, you would take a little bit out of the battery every day without putting enough back.  It is sort of like making a small withdrawal out of you savings account everyday.  It goes unnoticeable for quite awhile and then suddenly you’re broke.  You would be left wondering why your engine runs all the time and your fuel economy took a nose dive.  The engine would have to run constantly to get the battery back to a full state of charge and then the cycle would start all over again.  To prevent this from happening, other sources of energy needed to be found. 

Fortunately, braking offers a solution.  In your normal vehicle, brakes use a hydraulic system to put pressure on the brake pads to clamp against your rotors to stop.  Well, hybrids can do the same thing but it also has another system it can use – the generator.  The generator is what powers your wheels when you’re operating under electric power.  One of the characteristics of electric motors is of course when you apply a voltage to them they turn.  In our hybrid, it powers us down the road.  One of the other characteristics is that if I turn the generator mechanically it will generate a voltage.  It can operate in both directions.  In our hybrid, when we want to slow down, we switch the generator so that the wheels drive it and it produces power that is fed back to the battery.  The mechanical friction of the generator begins to slow us down.  If we need a sudden stop that the generator can’t provide, we still have the normal braking system.  Every little bit of energy can return back to the battery is that much less you have to provide during the engine running scenario.  That helps us with our fuel economy as well because when you have to charge the battery during the engine cycles, it requires more work for the engine which requires more fuel.  So when you’re neighbor wants to check out your new hybrid, give him an earful on how your regenerative braking system works.

Rich Dennison

Electric Chili Recipe

OK, the blog wouldn’t be an Electric Chili blog without my famous chili recipe.  Here’s the shopping list…

2 Lg. cans of Whole peeled tomatoes in water
1 lb of hamburger
1 large white onion
1 healthy sized green pepper
1 can of red beans (optional)
Chili powder
Tsp Salt
Pepper
Tsp Sugar
1 Bay Leaf
1 small can of tomato paste
1 small can of tomato sauce
2 small Jalapeños

The short story here is to brown/drain the hamburger. Put the burger and everything else into a large crock pot. As it cooks periodically add chili powder to taste and cut the large tomatoes and Peppers into smaller pieces. In about 4 to 6 hours you’ll have an awsesome chili! It’s not about the hotness, it’s about the texture. Sure, you can make it hot if you like it that way but I’ve found that most people appreciate a good full body chili with spice.

Rich Dennison

Powered by WordPress and Giveaway of the Day.