12F675 and LM35 coding issue


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Right, sitting on the couch @ home and was about to post about a strange result I was getting (unexpected LED lighting up)...until I checked my wiring again and I found the breadboard was still swapped from when I was doing the PWM routines with the LEDs, :-).

    Just checked with my DMM and it's 100% spot on, will adjust the CASEes to accommodate the 3 ranges I need and move it to a PCB, :-)

    Just wanted to say a really BIG thank you to everyone who took the time to help a newbie like me see the light (hehe no pun intended).

    I've decided to waterproof the LM35 and place it in the bath to show my 3yr old daughter when the water is too hot to touch - although she knows not to touch unless me or my wife has checked it first.

    My next project will be to take an input from my RC transmitter and drive a servo to start with, think I'm going to have to do quite a bit of reading, :-)

    Once again, thank you Alain, Fratello, Charles and Hendrik, appreciate the assistance - a couple of light bulbs have gone on in my head, looking forward to the journey PICs might lead me on.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Be careful showing little ones you putting something in the bath with wires attached.

    Daddy did it with his gadget, I wonder what the radio sounds like under water....
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Mar 2010
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Hi Dave, point taken , :-), will make sure its enclosed and placed well before she sees it. Although when she was 2 she dropped a doll in by accident and since then has learn't not to put anything in the water unless its classified as a bath toy.

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi, Bobbo

    one of our reviews ( Electronique pratique ) raised such a gadget :

    - LM339 comparator and NTC
    - Packed into a plastic photo roll box
    - 2 electrodes + a Darlington trans. to power on the device when dipped into the bath ... ( auto shut off with the towel ! )
    - powered with 3x2 small round Li batteries ...

    Do not ask me the scheme ... i do not have it !!!
    http://www.electroniquepratique.com/...idMg=29&id=316
    http://www.electroniquepratique.com/...idMg=42&id=505

    Alain
    Last edited by Acetronics2; - 9th March 2010 at 08:45.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Mar 2010
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Now there's an awesome idea, will work out a way to waterproof the LM35 out the bottom of the case.

    Need to also work a way where you can press a button and the device will stay on for X number of minutes and then either sleep or turn off. Then she can press the button, drop it in and watch the colors, of course she will be taught that it is an "Authorized" bath time device, ;-)

    BTW, last night I managed to read the input signal from my RC Transmitter (Ok, pulsin is not so hard) from 2 channels and drive 3 different items as follows:

    1. LED for testing purposes - easy
    2. Pass through for the servo control
    3. Glow igniter (proportional depending on the throttle location as well as always on depending on the Gear channel switch) +-3A load - Running through a FET - I learn't how to use these in 1 night, :-) I'm quite chuffed to understand how these work now, it opens up a range of possibilities as now I can switch fairly high loads from the PIC.

    Thanks Alain, I noticed you are on RC Groups as well, hope to bump into you there as well in the future, I'll begin posting my autopilot build there soon, planning to use PICs as fail safes for the main navigation / stabilization hardware, :-)
    Last edited by Bobbo_ZA; - 10th March 2010 at 09:02.

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi, Bobbo

    For the Glow-igniter, I've published an advanced one ... several years ago.

    Article is written in French ( ... ! ) so, the question ...

    Do you read French ??? ( even under torture ...)

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  7. #7
    Join Date
    Mar 2010
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Alain,

    My French is nowhere near as good as your English, :-)

    Thankfully, the internet has given us google translate which works quite well with french and where it stumbles I can normally work out the meaning when put into the correct context.

    I've had a look around but am a bit confused around 2 things.

    1. I'll need a jumper to allow the user to input "Programming mode" - Not sure where to put it, would GP3 with a pulldown res work or can I use any other GP?
    2. Once I have read the value I can flash the LED a couple of times to show the user the chip has the reading, however, when the chip reboots, how do i store the value in memory that will not be reset on a power cycle, :-)

    Easy to explain but quite complex principles to work out, :-) seems like i might be getting ahead of myself.

Similar Threads

  1. 12F675 cant serout to PC
    By ruijc in forum General
    Replies: 9
    Last Post: - 3rd December 2007, 00:11

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts