i haven't the 16F1786 in microcode studio list (pbp246), what can i do?


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Mar 2016
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: i haven't the 16F1786 in microcode studio list (pbp246), what can i do?

    hi, i hv some problem for my project

    how to do it if u want condition like this
    ( temperature from 29C to 35C, the bulb will ON that means the bulb will ON if temperature <29C until temperature = 35C
    but when temperature >35C the bulb will OFF until the temperature reach to or below 29C and that condition will repeat)

    sorry for my word, i hope someone can give a some advise or hint to help me
    thanks

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,123


    Did you find this post helpful? Yes | No

    Default Re: i haven't the 16F1786 in microcode studio list (pbp246), what can i do?

    Your question is a bit contradictory.

    You say to have the bulb ON if temp is between 29-35 C.

    Then trying to explain more you say bulb ON if temp < 29 and until temp reaches 35.

    Please clarify what exactly you want.

    Ioannis

  3. #3
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: i haven't the 16F1786 in microcode studio list (pbp246), what can i do?

    Quote Originally Posted by Student92 View Post
    hi, i hv some problem for my project

    how to do it if u want condition like this
    ( temperature from 29C to 35C, the bulb will ON that means the bulb will ON if temperature <29C until temperature = 35C
    but when temperature >35C the bulb will OFF until the temperature reach to or below 29C and that condition will repeat)

    sorry for my word, i hope someone can give a some advise or hint to help me
    thanks
    What exactly is your project, it sounds very much like a thermostat of some description ?

    i haven't the 16F1786 in microcode studio list (pbp246), what can i do?
    What is the reason for choosing a 16F1786 over other PICs that are supported in the version of PBP you have ?

    So you want the light on when the temperature is between 29c and 35c, then you could try something like this.. crude but should work

    Code:
    temperature var byte
    lamp var PORTA.1
    
    If temperature <29 or temperature >35 then low lamp
    If temperature =>29 or temperature =<35 then high lamp
    Last edited by Scampy; - 11th March 2016 at 17:20.

Similar Threads

  1. Microcode Studio Plus
    By Archangel in forum PBP Wish List
    Replies: 7
    Last Post: - 31st October 2013, 01:05
  2. using MicroCode Studio
    By Max_Gauss in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th September 2011, 19:04
  3. Microcode studio
    By Stargazer3141 in forum General
    Replies: 4
    Last Post: - 28th January 2011, 22:49
  4. microcode studio plus
    By c_moore in forum General
    Replies: 2
    Last Post: - 26th July 2010, 10:45
  5. MicroCode Studio Plus
    By ozarkshermit in forum General
    Replies: 0
    Last Post: - 30th December 2009, 23:27

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