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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
John Wiltrout's Blog Process Duration Timer Part 3 (Interfaces)
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: jw0752
  • Date Created: 3 Aug 2017 5:41 AM Date Created
  • Views 1574 views
  • Likes 8 likes
  • Comments 1 comment
  • diytestequipch
  • process duration timer
Related
Recommended

Process Duration Timer Part 3 (Interfaces)

jw0752
jw0752
3 Aug 2017

     I will begin this blog by showing you how I have mounted the power supply into the project box that will be used for the Process Duration Timer. After a lot of searching in my transformer grave yard I found one that will allow the power supply to deliver 0 to 30 volts for the Target Clock Off Voltage. I have mounted a Recon R78C9.0-1 DC to DC converter to the power supply board. This will supply Vin to the Arduino as well as power the clock and the voltmeters for the Test Voltage and Target Voltage. Here are a couple pictures of the power supply and transformer mounted in the project box:

 

image

The loop of yellow wire will run to the main power switch. I have not yet planned the layout of the instrument and control panel. The Yellow , Blue, and Green twisted line in the lower right goes to the potentiometer that controls the Target Voltage which is supplied by the black common and red wire that exit to the top of the picture. The orange wire is the 9 volt supply.

 

image

 

image

I have fused the primary with a 500 mA Slow Blow fuse and mounted the power cord with a strain relief. The power cord is extreme over kill on gauge as it came off an Iron but it was more flexible than the lesser gauge cords in the box.

 

     Since my last blog on this project I have been working on the interface between the Arduino and the Clock board. I wanted the Arduino to be able to send a High out one port to enable power to the Clock board and also send a High out a second port to put the clock into Suspended Animation. The plan is to have the Arduino turn off the clock once on reset (I will call it START eventually) and then keep the clock powered until the Reset is pushed again. Once the Reset is pushed and the clock is timing the Arduino will busy itself comparing the Test Voltage to the Target Voltage. As soon as the Process that is lowering the Test voltage brings it below the Target Voltage the Arduino will send the High out the second port and suspend the Clock. At this point the Arduino will pause until I come back at a later time to record the elapsed time on the clock and reset the experiment. There is minimal challenge to this interface as it is a very standard circuit for this purpose. I am using (2) 2N7000 N Channel Mosfets to do the heavy lifting. Here is the circuit that I put together and tested.

 

image

And Here is a Schematic:

image

For those of you with sharp eyes the bread board doesn't match the schematic. The schematic is the correct configuration, though the bread board works this way it isn't the right way to do it.

 

One thing of interest since last time is that I have solved the problem of where I was going to get the 5 volts to energize the relay that puts the clock into suspended animation. I remembered that while the clock itself has a Vin of 9 volts it was followed in the circuit by a 78L05 voltage regulator. This is a small TO-92 device and I didn't trust it to handle the power requirements of both the clock and the relay so I replaced it with another Recon R78E5.0-0.5 which is a 500 mA version DC to DC converter. Here is a picture of the reverse side of the clock module showing the installation of the DC to DC converter. Not surprisingly the current draw on the 9 volt line dropped considerably as the DC to DC converter is much more efficient than the linear 78L05.

 

image

 

By taking the image power for the suspension relay from the clock board I was left with only two control lines running from the Clock Module to the Interface Board. Pulling one to ground will turn on the clock itself and pulling the other one to ground will energize the relay and suspend the clock. I bread boarded the interface circuit and hooked it to the Clock Module. I manually simulated the control output of the Arduino and monitored the current drawn by the clock module.

 

     The next interface that I needed to design was the one between the Test Voltage and the Arduino's analog input (0) and the one between the Target Voltage and the Arduino's analog input (1). Since the Arduino can handle a maximum 5 volts on these inputs and since my target and test voltages may be as high as 30 volts a resistor divider seemed to be indicated. Besides just making it a resistor divider I also wanted to put a little bit of averaging into the voltage delivered to the Analog inputs so that spikes and fluctuations would not cause problems. The last thing I wanted to do was to make an effort to balance the two voltage dividers so that the voltage received by the Arduino wasn't weighted in favor of the Test or Target voltages. I wanted to be able to do this without spending hours trying to match the resistors that I chose for the dividers. Here is the circuit that I designed, bread boarded and tested out.

 

image

And the Schematic to go along with it.

 

image

 

Since I am only a Technician and not an Engineer I have special permission to design empirically. The balancer with the 1 meg trimmer and center leg to ground through another 1 meg resistor was what it took to balance the two sides. No calculations needed. To test this I put the same 30 volts on the Target Vin and the Test Vin. I then put my millivolt meter between "To Analog (0)" and "To Analog (1)". I next adjusted the 1 meg trimmer until I had 0 volts on the meter. This told me that my voltage dividers would deliver the same voltage to analog (0) and (1) if the same voltage was provided at Target Vin and Test Vin.  To provide a little stability to the output voltage I have a 10K resistor supplying a 100 nF capacitor before it is sent to the Analog inputs.

 

     While I didn't include it in this discussion I will also have to have a connection point to tie the Volt Meters into the circuitry. Each volt meter will need a +9 volt feed, a ground and then the voltage sense line will go back to the Target and Test voltages. The present plan is to make an Arduino shield board that will contain the two interfaces as well as the meter connection points.

 

     If anyone can see anything that I have done in these interfaces that has "problem" written on it your input would be appreciated.

 

John

 

https://www.element14.com/community/people/jw0752/blog/2017/08/06/process-duration-timer-part-4-the-brain-and-proof-of-concept

  • Sign in to reply

Top Comments

  • jw0752
    jw0752 over 7 years ago +1
    Addendum: One of the better engineers on our e14 Forum has called my attention to the poor example that I set in providing an adequate strain relief for the power cord that comes into my project. He is…
  • jw0752
    jw0752 over 7 years ago

    Addendum:

     

    One of the better engineers on our e14 Forum has called my attention to the poor example that I set in providing an adequate strain relief for the power cord that comes into my project. He is 100 % correct and with a constructive suggestion from him I have added a better strain relief. Often in our excitement to complete a project there is a temptation to take short cuts. Sometimes these short cuts are trivial but when we are dealing with mains power we should always do our best to do things according to the rules. Here is a revised photo of the way I have improved the strain relief on my power cord to the unit.

     

    image

     

    John

    • Cancel
    • Vote Up +1 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