element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Forget Me Not Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Forget Me Not Design Challenge
  • More
  • Cancel
Forget Me Not Design Challenge
Blog Pas Home / Home ventilation with RPiSoC
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: verrverr
  • Date Created: 1 Sep 2014 12:38 AM Date Created
  • Views 1190 views
  • Likes 0 likes
  • Comments 7 comments
  • forget_me_not
  • pas_home
Related
Recommended

Pas Home / Home ventilation with RPiSoC

verrverr
verrverr
1 Sep 2014

Pas Home - Index

 

I will use the RPiSoC to control and catch the status of my home ventilation system. Integrate with OpenHAB and my humidity sensor, when i take my shower humidity sensor detect the humidity increase and automatically start the ventilation. I suck in electronics I'm going to need your help.


The plan


image


The timer

I open the current control and check component.

Its seems simple enough:

      4 wire 12v, GND, LED Control, SW (Switch),

     LM2901DG Chip (From spec 'Designed for use in level detection')

     3 LED

     Push button

     100uf 63v 85°C (Capacitor)


imageimageimageimage

The signal

With the Tektronix oscilloscope i check what happen in SW and LED wire.


SW wire, have continuous 5v DC and when i press control button its drope near 0v and when i release it return to 5v. When signal is reduce to 0v for about 1 second or more the main control unit detect it and start ventilation and switch between each timer state.

What is the name of this transition? Do you know some tutorial links to reproduce this with RPiSoC ?


imageimage


The LED wire have his voltage between 0v to 10v. Each value indicate a state. Measure voltage between 0v to 5v with RPiSoC its seem very easy with analog port and this sample code https://github.com/EmbeditElectronics/psoc_2_pi/blob/master/API_Python_v_1_1/SAR_ADC_voltmeter.py

But how measure voltage with range 0v-10v? Use a Voltage Dividers? Do you know a good tutorial?


image




  • Sign in to reply

Top Comments

  • kipe
    kipe over 10 years ago in reply to verrverr +1
    Hey. Try with larger resistors, so the affect on the existing circuit won't be that much. Something like 1M and 470k might work...
  • verrverr
    verrverr over 10 years ago in reply to kipe

    Great, thank you very much its works

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kipe
    kipe over 10 years ago in reply to verrverr

    Hey.

    Try with larger resistors, so the affect on the existing circuit won't be that much. Something like 1M and 470k might work...

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • verrverr
    verrverr over 10 years ago in reply to mcb1

    Hi, I tried this weekend the voltage divider with 10k and 4k7. All work great when a test to calculate power of différent power supply 5v,9v,12v but when i try with my ventillation system, immediately when is plug the input voltage 10v drop to 6v. It's not apreciate because original device controls stop working correctly image.

     

    Is there another way to reduce the voltage for reading or way be prevented voltage drop ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • hlipka
    hlipka over 10 years ago in reply to verrverr

    Yes. No. A relay can alway replace a button, just connect it in parallel. And if there is already a cap (though I'm not sure what its used for), you should not add another one.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • verrverr
    verrverr over 10 years ago in reply to hlipka

    Hi thank for your help, for the pull-up resistor if I understand if a use a relay I just need to link the gnd and switch wire using the relay for a small duration?

    The current push button on the switch have a 100uf capacitor on the vcc side, do I also have to use one?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube