Advertisement

ac measurement status

Not rated 13,850

#ATtiny85 #ADC #current measurement #voltage measurement #JeeLib #Ports library #50Hz #datasheet #sketch #code
ac measurement status
ac measurement status

Description: The code utilized on the ATtiny85 has been incorporated as the tiny50hz example sketch in the JeeLib library. The primary components of the code are straightforward, although considerable reference to the datasheet was necessary to configure the ADC settings correctly. This sketch compiles to 3158 bytes of code, leaving ample space for additional functionality. It is believed that a similar configuration could be employed with a current transformer equipped with a burden resistor. A comparison of signal levels and an evaluation of low-power sensing capabilities could be beneficial. The differential inputs of the ATtiny, along with the 20x programmable gain and various AREF options, provide significant flexibility. For powering this unit, a small transformer is recommended due to its affordability and availability in compact sizes suitable for PCBs. The KAKU system utilizes such transformers for its power requirements. However, an isolated method for measuring current flow should be considered, potentially through an inductive approach. Although some inductive components may be costly, numerous off-the-shelf alternatives are available for this application.

The ATtiny85 microcontroller is a compact and versatile device frequently employed in low-power applications. The integration of the tiny50hz example sketch into the JeeLib library illustrates its capability in handling ADC (Analog-to-Digital Converter) operations. The code's efficient use of memory, compiling to just 3158 bytes, indicates that there is sufficient space for additional features or enhancements, making it suitable for various projects requiring minimal resource consumption.

The use of a current transformer with a burden resistor is a practical approach for measuring alternating current (AC) signals. This configuration allows for safe and accurate current sensing without direct electrical contact with the high-voltage lines. The differential inputs of the ATtiny85 enhance measurement accuracy by rejecting common-mode noise, which is particularly beneficial in environments with substantial electrical interference. Additionally, the programmable gain feature enables the amplification of weak signals, ensuring that even low-power sensing applications can be effectively addressed.

For powering the ATtiny85, a small transformer is advisable. These transformers are not only cost-effective but also come in compact sizes that can be easily integrated into printed circuit boards (PCBs). The KAKU system's use of such transformers exemplifies their practicality in powering low-energy devices. However, when measuring current flow, an isolated method is recommended to prevent potential damage to the microcontroller from high voltages. Inductive sensing methods, while sometimes more expensive, provide a non-invasive means of current measurement and can be sourced from various manufacturers specializing in electronic components.

In summary, the combination of the ATtiny85's features and the recommended components, such as current transformers and inductive sensors, presents a robust solution for low-power sensing applications. The availability of off-the-shelf components further facilitates the design and implementation of effective electronic systems.The code I used on the ATtiny85 is now included as tiny50hz example sketch in the Ports library, eh, I mean JeeLib. Here are the main pieces: Nothing fancy, though it took a fair bit of datasheet reading to get all the ADC details set up.

This sketch compiles to 3158 bytes of code lots of room left. To follow up on that last note: I think the exact same setup could be used with a current transformer w/ burden resistor. I ought to try that, to compare signal levels and to see how well it handles low-power sensing. The ATtiny`s differential inputs, the 20x programmable gain, and the different AREF options clearly add a lot of flexibility. If you want to power this unit, I`d use a small transformer. They don`t cost much and they exist in small form factors suitable for PCB`s. In fact the KAKU system uses these to power itself. Still, I think you should look for an isolated method to measure current flow. Maybe even on an induction base Something like this ( ) Yes I know those are expensive, but hey, we can find something like it right All kinds of off the shelf components exist for this job, so why don`t you use those


Related Circuits