276°
Posted 20 hours ago

YJINGRUI Length Meter Counter Digital Length Meter with Wheel Roller Switchable for Meter and Yard

£9.9£99Clearance
ZTS2023's avatar
Shared by
ZTS2023
Joined in 2023
82
63

About this deal

Interrupts are powerful - sometimes too powerful. A single tap of the zero button could cause the zeroButtonPressed() function to be called 10-20 times, so I added some debounce logic. My optical encoder didn't need it, but YMMV. The first requirement was the 5V supply voltage of my rotary encoder. Of the various ESP32 dev boards I had in my stash, only a few supplied true 5V at the Vcc pin when powered by USB. (The others measured 4.5-4.8V, which, in case your math is bad, is lower than 5V.) The board I used was a Wemos Lolin32. The basic counting is simple: two inputs -- set to pull up internally so external resistors don't need to be soldered to Vcc -- and one interrupt. I also added a zero/reset button, requiring one more input and interrupt: void setUpPins() {

consisting of a number of flip-flops these count a stream of pulses applied to the counter's input. The output is a binary value whose value is equal to the number of pulses received. Synchronous countersFor my project, I used these libraries: u8g2 by Oliver, elapsedMillis by Paul Stoffregen, and HTTPClient by Markus Sattler, which comes with the Espressif ESP32 platform. Everything else either comes with the Arduino library or the ESP32 platform in PlatformIO.

Typical applications including textile machines, winding machines, automatic machines, presses, shearing machines, printing machines, measuring of tape, measuring cloth, paper, extruded material, etc…I needed something to cover the space left by the removal of the ugly giant logo on the front of my printer. RS Components provides a versatile range of counters to suit a variety of devices and functions. With digital, electromechanical, and purely mechanical counters available, RS provides a solution to industrial, commercial and project applications wherever precise counting and tallying is required. You'll find counters available from trusted brands such as Baumer, Omron, Red Lion, Kubler, Hengstler, Trumeter and our own RS PRO selection. Functions of Counters To develop the code and flash the board, I used the spectacular PlatformIO running on Visual Studio Code, both free. Mechanical Counters - are built using mechanical components, They typically consist of a series of disks mounted on an axle, with the digits 0 through 9 marked on their edge. Hour meters

I designed this so wiring would be dead simple, mostly so my enclosure could be small, but also so debugging would be straight-foward. Note the cramped conditions in my little box. :) have a cascade layout of flip-flops in a ring so that the output of the last is fed into the input of the first. Mechanical counters The idler, which fits over a 608ZZ bearing (remove the sheilds and degrease with WD40 so it spins freely). You can position a de-reeler just before the wire length counter. The durable de-reeler simplifies the operation of pulling wire and cable neatly from your wire spools.A button holder customized for the tiny switch I had, designed to rest between the two shelves inside the bottom enclosure. I used a soldering iron to "glue" the switch to the holder; see the prior step for a photo.

Asda Great Deal

Free UK shipping. 15 day free returns.
Community Updates
*So you can easily identify outgoing links on our site, we've marked them with an "*" symbol. Links on our site are monetised, but this never affects which deals get posted. Find more info in our FAQs and About Us page.
New Comment