Notifications
Clear all
Search result for: WA 0852 2611 9277 [[GLORION]] Jasa Pemborong Lemari Perabot Dapur Red Top Jakarta Pusat
Page 1 / 2
Next
Hey,
Note: UNO R3 supports 8-bit PWM resolution, not 10.
Higher resolution means the PWM output can be more finely tuned, resulting in a smoother signal. This is particularly important in applications like motor control, LED dimming, and audio signal generation.
8-bit resolution means there are 256 possible duty cycle values (from 0 to 255). That's why the analogWrite(PWM pin, PWM value) takes values bw 0 and 255. In this case, increasing the duty cycle step by step corresponds to a change of approximately 0.4% (1/256) of the full-scale value.
Whereas the 16-bit resolution means there are 65,536 possible duty cycle values (from 0 to 65,535).Each step in the duty cycle corresponds to a change of approximately 0.0015% (1/65,536) of the full-scale value.
As much as the resolution is important, so does the frequency of the PWM signal. The increase in PWM resolution decreases the maximum PWM frequency possible for the same clock frequency.
if UNO and ESP32 have the same clock frequency i.e., 16 MHZ. The maximum possible PWM frequency(16-bit) for ESP32 will only be 244 Hz. Whereas for UNO(8-bit), it is 62.5 KHz.
For example,
16 MHz / 256 and 16 MHz / 65,536.
EDIT:
Hey everyone! Let’s clear up the confusion regarding PWM resolution and the difference between dividing by 2^n versus 2^n - 1
The Hardware Timer Perspective
In fast PWM mode, the timer counts from 0 up to a “TOP” value and then overflows back to 0.
For 8-bit PWM, Top = 255. This gives you a counter range of 0–255 = 256 distinct counts.
For 2-bit PWM, Top = 3. This gives you a counter range of 0–3 = 4 distinct counts.
Thus, in terms of raw timer ticks, there are 2^n counts per cycle.
The Duty Cycle Perspective
When calculating duty cycle, we typically use:
Duty Cycle (%)= (Compare Register Value/TOP) ×100.
For 8-bit PWM, you divide by 255 (TOP = 255), so the highest compare value 255 yields 100 % duty cycle.
For 2-bit PWM, you divide by 3 (TOP = 3), so a compare value of 3 yields 100 % duty cycle.
If you were to divide by 2^n directly (e.g., 256 for 8-bit), the maximum compare value (255) would give (255/256)x 100 =~ 99.6% which technically matches clock ticks but doesn’t align with the usual definition of 100 % on hardware PWM outputs.
Why It Matters
0 % duty cycle: Compare Register = 0.
100 % duty cycle: Compare Register = Top (which is 2^n - 1).
Users generally expect that the maximum compare setting translates to the output being fully ON (i.e., 100 %).
Summary
The timer truly counts 2^n steps (from 0 to 2^n−1).
However, to get a duty cycle percentage from 0 % to 100 %, you divide the compare value by 2^n - 1.
That’s why for 8-bit PWM, you’ll see many references to dividing by 255, not 256.
... etc.
Tough housing, drop-tests, high-CAT safety ratings.
High accuracy, true-RMS, stable calibration.
Long lifespan, support and WArranty which Reduce long-term cost.
If you’re replacing a hobby-meter and don’t work in heavy duty applications, yes you might be fine with a cheaper brand. But if you need one tool that you can trust under serious conditions, the extra cost makes sense.
Definetly not, Dont switch to amps or move the Red lead to the A/10A jack while your probes are on a live circuit. In A mode the meter is basically a short; flipping to it or probing voltage with the lead in A can blow the fuse, make an arc, or worse.
Set the meter and leads with power off, break the circuit, insert the meter in series, then power up. For mains, use a clamp meter; for 12 V high-current systems be extra cautious or use a clamp/shunt. And always move the Red lead back to V when you’re done to avoid the classic “next-time short.”
A good rule of thumb when reading resistor color codes is to start from the end where the color band is closest to the lead. That first band usually marks the most significant digit, so if one side has a band that's clearly closer to the edge than the other, that’s your starting point.
For instance, in many 4-band resistors, you’ll see something like Red on one end and gold on the other. The gold band is usually spaced a bit farther from the edge, and since gold and silver are never used as the first digit, that’s a solid hint they mark the tolerance and should be read last.
Resistors can have up to 6 color bands, with the extra ones representing things like tolerance and temperature coefficient. These can be a bit trickier to read, but once you're familiar with the basic rules, it gets easier.
Here’s a quick breakdown:
4-Band Resistor
1st Band = 1st digit
2nd Band = 2nd digit
3rd Band = Multiplier (i.e., how many zeros to add)
4th Band = Tolerance (accuracy)
Example: Red (2), Violet (7), Orange (×1,000), Gold (±5%) → 27,000 ohms or 27kΩ ±5%
If you still find it tricky, you can use an online calculator to make things easier:
👉Resistor Color Code Calculator
This is the safest option to identify the Neutral wire using a multimeter:
1. Set Up Your Multimeter:
Set your multimeter to AC voltage mode (V~).
Choose a range higher than your supply voltage (e.g., 250V for 220V systems).
Insert the black probe in COM and the Red probe in V/Ω.
2. Identify the Live Wire:
Place the black probe on a known earth source (e.g., a metallic pipe or grounded screw).
Use the Red probe to measure each wire.
Live to Earth = ~220V (or 110V)
Neutral to Earth = 0V - 5V
Earth to Earth = 0V
The wire showing the highest voltage (~220V or 110V) is Live.
3. Identify Neutral vs. Earth:
Measure the voltage between the remaining two wires.
Neutral to Earth should show 0V - 5V due to minor voltage drop.
Earth to Live should still show ~220V (or 110V).
The wire showing nearly 0V relative to Earth is the actual Earth wire.
I’ve been exploring different wireless communication options for low-power IoT projects. LoRa keeps coming up as a Top choice for long-range, low-bandwidth communication.
What caught my attention is how it can reach tens of kilometers, even with very little power. That sounds impressive compared to Wi-Fi, Bluetooth, or even regular RF modules.
I’ve read a lot about its benefits, but I’m more curious about the why. What’s the underlying technology that makes LoRa capable of this? Any technical resources or clear explanations would be really helpful.
The resistor value for an LED is crucial as it limits the current flowing through the LED, protecting it from damage. Choosing the right resistor value depends on the LED's specifications and the voltage of your circuit. Here's how you can calculate it:
Formula-
R = (Vsource - Vf) / ILed
Vsource is the Arduino’s pin voltage (e.g., 5V or 3.3V).
Vf is the LED’s forward voltage (e.g., ~2V for Red, ~3V for blue/white).
Iled is the desired current (usually 10-20mA for standard LEDs).
For example, with a 5V source, a Red LED (Vf = 2V), and 15mA current:
R = (5V - 2V) / 0.015A = 200Ω
People choose different resistor values based on:
Brightness: Lower resistors (e.g., 100Ω) make LEDs brighter; higher resistors (e.g., 1kΩ) dim them.
Power source: Different sources (3.3V vs. 5V) need different resistors.
LED specs: Forward voltage and current ratings vary by LED.
To identifying the Neutral Wire Using a Multimeter you have to follow the steps below.
Set Up the Multimeter: Switch your multimeter to an AC voltage range above your circuit’s expected voltage.
Connect the Probes: Insert the black probe into the "COM" port and the Red probe into the "V" port on the multimeter.
Test Each Wire:
Touch the black probe to a known ground (like a metal box or a ground wire).
Use the Red probe to test each wire individually:
A high voltage reading indicates a live wire.
A near-zero reading (under 1V) usually points to the neutral wire.
This method should reliably help you find the neutral wire. Remember to always turn off the power before making any connections, and re-energize only for testing.
Arduino Uno and Nano primarily function as control interfaces rather than image processors when working with AI camera modules.
These boards have extremely limited resources (2KB RAM on Uno, 32KB flash memory) which makes it impossible to store even a single 320x240 pixel image, let alone process it. Instead, AI modules like HuskyLens, OpenMV, or ESP32-CAM contain dedicated processors (like STM32H7 in OpenMV or ESP32 in ESP32-CAM) that handle all the computationally intensive tasks internally.
These modules run neural networks, perform image processing, and extract features, then send only the interpreted results to Arduino - such as "face ID:1 detected at position (150, 120)" or "red line detected at angle 45°".
The Arduino then uses these simplified data packets to make decisions, like turning a servo to track the face or adjusting motor speed to follow a line.
Page 1 / 2
Next