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
Back to Analog
  • Challenges & Projects
  • Project14
  • Back to Analog
  • More
  • Cancel
Back to Analog
Blog Hiraga PreAmp .. build 5 - software for a tube amp?
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Back to Analog requires membership for participation - click to join
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: phoenixcomm
  • Date Created: 20 Dec 2018 5:07 AM Date Created
  • Views 333 views
  • Likes 3 likes
  • Comments 0 comments
  • analog pin
  • hiraga
  • diy audio
  • computer controled
  • power supply
  • software development
  • 12ax7
  • inrush current-limiter
  • pre-amplifier
  • arduino
  • diy electronics
Related
Recommended

Hiraga PreAmp .. build 5 - software for a tube amp?

phoenixcomm
phoenixcomm
20 Dec 2018

Well, life is still not on a good keel. I picked up at Fry's a proto shield, and some optocouplers. So the world keeps spinning and I am using a software-controlled power-supply
I don't have a formal sketch but this is what it will do:

Code ?

setup () {

     int relay[] = { pin2, pin3, pin4 };

     int sscr[] = { pin5, pin6, pin7};

     int lamps[] = { pin8, pin9, pin10, pin11 };

     int TRUE = 1;

     int ON = 1;

     int OFF = 0;

     delay(30000);

     int part;

     for ( part = 0; part < 3; part++ ) {

         relay[part] = ON; }

     lamps[3] = ON; // CPU IS UP}

 

loop () {

    for ( part = 0; part < 3; part++ ) {

         if( Vmax() == TRUE ) {

             sscr[part] = ON;

             delay(10000);

             relay[part] = OFF;

             lamps[part] = ON;}}

    idel();

    return; }

 

void idel() {

    // just keep awake;

    do {

         delay(60000);  // this is a sixty second sleep for ever

         while (TRUE);  }}

 

int Vmax() {} // have to check on the code still.

When the unit is turned on, by depressing the power switch in, that powers up the auxiliary power which provides 12vdc, 9vdc, and 24vdc via voltage doubler.

  1. The Arduino will come up and wait for about 5 seconds (to stabilize power)
  2. The Arduino will turn on relays 1 through 3 to apply to a resistive load to the toroids.
  3. The Arduino will loop through each toroid by using a counter in a for loop.
    1. The Arduino looks at AC voltage input (analog) and waits for max voltage when it sees the start of the drop
    2. The SSCR is now turned on.
    3. The Arduino waits 5-10 seconds
    4. The Arduino releases the bypass relay.
    5. The Arduino lights a status lamp

    Fins But Not Done

    I have a problem deriving Vmax AC with an analog input anybody out there knows how? Using a digital pin an optoisolator will not work as I get very small pulses at z-cross. So I have to do it the hard way. I, guess I will use a wall wart taken apart, as I don't need the case or plugs. and I will use a small resistor to limit voltage and current to about 4 volts ac and apply it to an analog pin.

  • Sign in to reply
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