Skip to content
eT Community

eT Community

  • Forums
  • Members
  • Recent Posts
  • Website
Forums
Search
 
Notifications
Clear all

Search result for:  WA 0821 1305 0400 [[Adefa]] Pusat Penjualan Geogrid Stabilisasi Lereng Heavy Duty Tabanan Bali

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

 Sort Search Results by:


Page 1 / 2 Next
# Post Title Result Info Date User Forum
Answer to: What exactly is PWM resolution ?   35 Relevance 2 years ago Admin Hardware/Schematic
  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.
Answer to: Why Does analogWrite Use a 0-255 Range for PWM?   15 Relevance 2 years ago TechTalks Programming
  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.
RE: What exactly is PWM resolution ?   9 Relevance 2 years ago FullBridgeRectifier Hardware/Schematic
  @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.
Answer to: Why Does analogWrite Use a 0-255 Range for PWM?   9 Relevance 2 years ago Sebastian Programming
  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.
Answer to: Is Arduino still relevant in 2024?   4 Relevance 2 years ago DIY Electronica Arduino
  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.
Answer to: Can i use EN pins for PWM speed control in L298N Motor driver?   12 Relevance 2 years ago Admin Hardware/Schematic
  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
Answer to: How does Arduino handle floating-point operations?   10 Relevance 12 months ago Admin Programming
  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.
Answer to: Beginner Arduino Course —Any Recommendations?   9 Relevance 11 months ago Amelia Arduino
  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.
Answer to: STM32 vs Arduino: Which One is Better?   4 Relevance 2 years ago electronicb_brain Hardware/Schematic
  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.
Answer to: Why Fluke multimeters are so expensive?   7 Relevance 7 months ago maryjlee Equipments
  ... 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.
Answer to: Can Raspberry Pi Replace a Home Router or Firewall?   4 Relevance 8 months ago Divyam RPi Pico
  Yes, it’s definitely possible to turn a Raspberry Pi (especially Pi 4 or Pi 5) into a router or firewall using software like OpenWRT, Pi-hole, or pfSense (via ARM builds). The Pi 4/5’s Gigabit Ethernet and USB 3.0 ports allow decent throughput—around 600–900 Mbps in real-world tests—suitable for small to medium networks. However, it lacks hardware NAT acceleration and enterprise-grade security features, so performance may drop under Heavy traffic or multiple VPN connections. For basic routing, ad-blocking, and light firewall duties, it’s reliable and stable; for high-load or mission-critical use, a dedicated router or firewall appliance is still preferable.
Answer to: How can I interface an AI camera module with Arduino?   4 Relevance 9 months ago Tech Geek Hardware/Schematic
  AI camera modules like ESP32-CAM, HuskyLens, and OpenMV have their own onboard processors that handle Heavy tasks such as face recognition, object tracking, and color detection. An Arduino Uno or Nano doesn’t have the processing power or memory to run AI algorithms directly, so in this setup the Arduino mainly acts as a controller. The AI module does the image processing and then sends results (for example, "face detected" or "object at X,Y") to the Arduino. For interfacing, most of these modules support UART (serial) as the primary method of communication, and some also support I2C or SPI depending on the module. UART is the simplest and most commonly used for sending recognition results to Arduino. The main limitation of using Arduino with these AI modules is that Arduino can’t handle raw image data or complex computations—it can only receive processed results and take actions (like moving a motor, turning on LEDs, etc.). If you need to do more advanced data handling, real-time image streaming, or run multiple AI tasks at once, boards like ESP32 or Raspberry Pi are better suited because they have more processing power and memory.
Answer to: Can I use Raspberry Pi as a replacement for a desktop PC?   4 Relevance 11 months ago abhinav singh RPi Pico
  I recently found myself in a similar situation when my old laptop stopped working, so I gave my new Raspberry Pi 5 a shot as a temporary desktop replacement. For basic tasks like browsing the web, checking emails, and doing some light coding, it’s been surprisingly capable. The performance is quite decent, especially with an SSD and a good cooling setup. However, I did notice that it struggles a bit with Heavy multitasking or media-rich websites. For longer-term use, I think it really depends on your workload. If most of your tasks are browser-based or involve lightweight applications, it’s actually a practical and cost-effective solution. That said, there are some limitations in terms of software compatibility and overall responsiveness compared to a regular desktop or laptop. I’m curious to know how others are finding the Pi 5 for daily use.
RE: What exactly is PWM resolution ?   3 Relevance 1 year ago Admin Hardware/Schematic
  @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.
RE: What exactly is PWM resolution ?   3 Relevance 2 years ago Sebastian Hardware/Schematic
  Good point by @FullBridgeRectifier . Just to clarify for anyone new to this: when we say “divide by 255 instead of 256,” it’s because we’re looking at the maximum value the PWM can take, not the total count of values. This WAy, your Duty cycle calculations always correctly reach 100%.
Page 1 / 2 Next

Forum Search

Recent Posts

  • Admin

    RE: esp32 diagram connection

    @wmughal What do you want to achieve here exactly?

    By Admin , 3 months ago

  • DIY an RF power meter Based on STM32F103 + MAX4003

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

    By anselbevier , 3 months ago

  • esp32 diagram connection

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

    By wmughal , 3 months ago

  • Admin

    RE: Motor driver not working properly

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

    By Admin , 4 months ago

  • Motor driver not working properly

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

    By Noochee , 4 months ago

  • Answer to: Bluetooth Speaker won't turn on

    Translator Sorry, this i...

    By servitec , 5 months ago

  • Bluetooth Speaker won't turn on

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

    By servitec , 5 months ago

  • Answer to: Why Fluke multimeters are so expensive?

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

    By maryjlee , 7 months ago

  • Answer to: Can Raspberry Pi Replace a Home Router or Firewall?

    Yes, it’s definitely possible to turn a Raspberry Pi (e...

    By Divyam , 8 months ago

Share:
Forum Information
Recent Posts
Unread Posts
Tags
  • 9 Forums
  • 274 Topics
  • 738 Posts
  • 1 Online
  • 282 Members
Our newest member: Flepvlimhix
Latest Post: esp32 diagram connection
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  Powered by wpForo version 2.4.17

© 2026 eT Community • Built with GeneratePress