Skip to content
eT Community

eT Community

  • Forums
  • What’s New
  • Members
  • Recent Posts
  • Website
Forums
Search
 
Notifications
Clear all

Search result for:  WA 0821 1305 0400 [[ADEFA]] Supplier Material Geoteknik Geocomposite Heavy Duty Aceh Utara Aceh

 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:


Page 1 / 2 Next
Answer to: What exactly is PWM resolution ?
Hardware/Schematic
Admin
2 years ago
35 Relevance
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.
View entire post
Answer to: Why do ceramic capacitors have no polarity?
Theoretical questions
Admin
1 year ago
17 Relevance
It's all about what they're made of inside. Basically, ceramic capacitors use a ceramic Material as the dielectric (the stuff between the metal plates). This Material doesn't care which WAy the electricity flows. you can hook it up forwards, backwards, sideways... it'll still work just fine. It's a "non-polarized" Material. Capacitors that do have polarity, like electrolytic capacitors, are different. They use a super-thin layer of metal oxide that's created through a chemical process. This layer only works as an insulator in one direction. if you hook it ...
View entire post
RE: What exactly is PWM resolution ?
Hardware/Schematic
FullBridgeRe...
2 years ago
9 Relevance
@ankunegi The answer is on point but I think there's a mistake in your calculation. To calculate the Duty cycle, we have to divide it by 255(the maximum value) and not 256(The total no. of steps). For example: A 2-bit PWM signal has 4 possible steps: 0,1,2 and 3 corresponding to 0%, 33.33%, 66.67% and 100% Duty cycle. You get this by dividing by 3, not 4. If you divide it by 4, you will get 25%. Which means 0%, 25%, 50% and 75%. See, you are not getting 100% Duty cycle in this case.
View entire post
Answer to: Why Does analogWrite Use a 0-255 Range for PWM?
Programming
Sebastian
2 years ago
9 Relevance
To the point answer by Techtalks. Just WAnt to add one important point here: The PWM pins on UNO have an 8-bit resolution. This gives us 256 discrete Duty cycles, since 2^8 = 256. Example: 2 bit means 4 possible Duty cycles. For PWM, they would be: 0, 33.33%, 66.66%, and 100%. Similarly, 4-bit means 16 Duty cycles, and 8-bit means 256 cycles. Now why does the PWM range from 0 to 255 and not 256? Because when you count 0, the total values from 0 to 255 are 256.
View entire post
Answer to: How does an LDR work?
Theoretical questions
Deboojit
1 year ago
5 Relevance
A Light Dependent Resistor (LDR), or photoresistor, is a passive component that changes its resistance based on light intensity. It is made of a semiconductor Material like cadmium sulfide (CdS), which exhibits photoconductivity—its resistance decreases as light exposure increases. In darkness, the resistance is high (megaohm range), while it drops significantly (to hundreds of ohms) in bright light. This property makes LDRs useful in applications such as automatic lighting, light meters, and alarm systems. They are commonly used in voltage divider circuits to provide a variable output voltage that microcontrollers or analog circuits can read.
View entire post
Answer to: Why Does analogWrite Use a 0-255 Range for PWM?
Programming
TechTalks
2 years ago
15 Relevance
Hello paul, In Arduino, the analogWrite function is used to generate a PWM signal on a specified pin. The value parameters ranging from (0-255) you provide determines the Duty cycle of the PWM signal. Value of 0: This means the pin is always off (0% Duty cycle). Value of 255: This means the pin is always on (100% Duty cycle). Values between 0 and 255: These values correspond to Duty cycles between 0% and 100%. For example, a value of 127 would create a 50% Duty cycle. This allows for precise control of analog devices, such as LEDs or motors, using digital signals.
View entire post
Answer to: How does a piezoelectric sensor generate voltage?
Theoretical questions
Deboojit
1 year ago
13 Relevance
Piezoelectric sensors convert mechanical force into electrical energy. They work using the piezoelectric effect, which occurs in certain Materials with a unique crystal structure. When you press, squeeze, or vibrate these Materials, their internal charges shift, creating a voltage across the Material. The amount of voltage they generate depends on several factors, including the amount of applied force, the type of piezoelectric Material used, and the sensor’s shape and thickness. If the vibrations match the Material’s natural frequency, the voltage output can get a significant boost. Temperature also plays a role, as some Materials are more stable than others. Additionally, how the sensor is connected to a circuit affects how much charge it stores and releases. That’s why these sensors are commonly found in devices like accelerometers, microphones, ultrasound equipment, and even energy-harvesting gadgets.
View entire post
Answer to: Can i use EN pins for PWM speed control in L298N Motor driver?
Hardware/Schematic
Admin
2 years ago
12 Relevance
Yes, you can hook these pins to the PWM pin on Arduino. The Enable pin on the L298N acts as a gatekeeper for the power supplied to the motor. When the pin is set HIGH, the motor is enabled and can run. When set LOW, the motor is disabled and stops. By connecting the Enable pin to a PWM-capable pin on the Arduino and sending a PWM signal, you can control the effective voltage supplied to the motor. This changes the speed of the motor: A higher Duty cycle (e.g., 100%) means the Enable pin is HIGH most of the time, allowing full power to the motor and thus full speed.A lower Duty cycle (e.g., 50%) means the Enable pin is HIGH only half the time, reducing the average power supplied to the motor and thus reducing the speed. Here's an example that demonstrates how to set up and control the motor speed connected to A channel: // Define pins const int ENA = 9; // PWM pin for Motor A const int IN1 = 8; // Direction pin 1 for Motor A const int IN2 = 7; // Direction pin 2 for Motor A void setup() { // Set pin modes pinMode(ENA, OUTPUT); pinMode(IN1, OUTPUT); pinMode(IN2, OUTPUT); } void loop() { // Set motor direction digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); // Set motor speed using PWM analogWrite(ENA, 127); // 50% Duty cycle, half speed delay(2000); // Run for 2 seconds // Change motor speed analogWrite(ENA, 255); // 100% Duty cycle, full speed delay(2000); // Run for 2 seconds
View entire post
Answer to: How does Arduino handle floating-point operations?
Programming
Admin
1 year ago
10 Relevance
Yes Arduino can do floating-point operations, but there’s a few things to keep in mind. 1. On boards like the Uno or Nano (which use the ATmega328P), it supports float and double, but the funny thing is—they’re actually the same thing. Both are 32-bit IEEE 754 floating point numbers. So don’t expect extra precision with double, it's just a float behind the scenes. 2. It can handle basic operations like addition, subtraction, multiplication, and division just fine. But it’s not super fast at it, since the 8-bit microcontrollers don’t have a floating point unit (FPU). That means it does all floating-point math in software, which can slow things down if you’re doing a lot of calculations in your loop. 3. Also, things like sin(), cos(), sqrt() and pow() work, but again, they’re kinda Heavy on processing time. So if you’re working with sensors and need to process stuff quickly, it’s sometimes better to stick with integers where possible, or scale up the values and work in "fixed point" math if you can. 4. One more thing—printing floats with Serial.print() only shows two decimal places by default. You can control that though: float pi = 3.14159; Serial.print(pi); // prints 3.14 Serial.println(pi, 4); // prints 3.1416 So yeah, Arduino can handle floats, but it’s not optimized for Heavy-duty number crunching. If you're doing more advanced math or need higher precision, better to move to something like a Teensy or a 32-bit board like the Arduino Due or even ESP32. But for basic stuff, it’s totally usable.
View entire post
How does a transformer work?
Theoretical questions
abhinav sing...
2 years ago
5 Relevance
I'm new to the electrical field and trying to understand how a transformer works. I've read a lot of Material online, but some of it seems overly complex and confusing. Could someone explain the working principle of a transformer in a simple and easy-to-understand WAy?
View entire post
Answer to: Is Arduino still relevant in 2024?
Arduino
DIY Electron...
2 years ago
4 Relevance
I think it’s less about “Arduino vs. ESP32” and more about picking the right tool for the job. Arduino is still fantastic for: Beginners learning electronics and coding. Quick prototypes that don’t need Wi-Fi or Heavy processing power. Reliable, simple projects like controlling LEDs or reading basic sensors. For IoT or real-time applications, ESP32 or Raspberry Pi Pico W is a better choice. But I’d say Arduino’s relevance comes from its accessibility. Many professionals started their careers with Arduino, and that familiarity keeps it in the game.
View entire post
Answer to: Beginner Arduino Course —Any Recommendations?
Arduino
Amelia
1 year ago
9 Relevance
If you're just starting out with Arduino and electronics, you're definitely not alone—there are some fantastic beginner-friendly resources out there to help you get going without feeling overwhelmed. Helpful YouTube Channels Paul McWhorterOne of the best for beginners. His “Arduino Tutorial Series” is clear, structured, and goes from basics to intermediate projects. Jeremy BlumHis Arduino series is a classic and covers foundational knowledge with well-explained videos. GreatScott!Excellent for understanding how the hardware works behind your projects. Programming Electronics AcademyVery helpful if you're also interested in understanding the coding side deeply. Online Courses Worth Checking Out Udemy – "Arduino Step by Step: More than 50 Hours Complete Course" Taught by Dr. Peter Dalmaris. Very beginner-friendly and includes lifetime access to lessons and Materials. Coursera – “Introduction to Programming with Arduino” Offered by University of California, Irvine. Teaches both basic electronics and coding in a structured format.
View entire post
Answer to: Why Fluke multimeters are so expensive?
Equipments
maryjlee
9 months ago
7 Relevance
... 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.
View entire post
Answer to: STM32 vs Arduino: Which One is Better?
Hardware/Schematic
electronicb_...
2 years ago
4 Relevance
I think it really depends on the type of projects you're working on. If you're mainly doing simple LED displays, motor control, or basic IoT projects, Arduino boards are perfect. They’re simple and get the job done without much hassle. But if you WAnt to dive into audio processing, real-time data acquisition, or anything that requires Heavy computation, STM32 is a beast. I switched over when I started working on a DIY oscilloscope project because I needed faster ADC and more memory.
View entire post
RE: What exactly is PWM resolution ?
Hardware/Schematic
Admin
1 year ago
3 Relevance
@FullBridgeRectifier Thanks for clarifying this. To summarize, there’s a subtle but important distinction here between “how many counts the hardware timer cycles through” (which is indeed 2^n counts) versus “how you usually compute the Duty‑cycle fraction” (which typically uses 2^n − 1 in the denominator so that the maximum register value maps to 100 %). I have edited my answer and added the explanation for this as well.
View entire post
Page 1 / 2 Next

Forum Search

Recent Posts

  • RE: Beginner Arduino Course —Any Recommendations?

    @rahav When I started learning Arduino, I realized that...

    By playwithcircuit , 3 weeks ago

  • Admin

    RE: esp32 diagram connection

    @wmughal What do you want to achieve here exactly?

    By Admin , 4 months ago

  • DIY an RF power meter Based on STM32F103 + MAX4003

    As we all know, Radio frequency (RF) is a very importan...

    By anselbevier , 4 months ago

  • esp32 diagram connection

    i never use esp32 before i get diagram from claude i wa...

    By wmughal , 5 months ago

  • Admin

    RE: Motor driver not working properly

    @noochee Can you please share more details? Circuit dia...

    By Admin , 5 months ago

  • Motor driver not working properly

    I built an obstacle avoiding robotic car using Arduino,...

    By Noochee , 5 months ago

  • Answer to: Bluetooth Speaker won't turn on

    Translator Sorry, this i...

    By servitec , 6 months ago

  • Bluetooth Speaker won't turn on

    I know is not probably the best place for a newbie, the...

    By servitec , 6 months ago

  • Answer to: Why Fluke multimeters are so expensive?

    Totally agree with the points above. In my experience, ...

    By maryjlee , 9 months ago

Share:
Forum Information
Recent Posts
Unread Posts
Tags
  • 9 Forums
  • 280 Topics
  • 747 Posts
  • 1 Online
  • 291 Members
Our newest member: Lewisanger
Latest Post: Beginner Arduino Course —Any Recommendations?
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

 Powered by wpForo version 3.1.4

© 2026 eT Community • Built with GeneratePress