7-Segment PCB
This is a simulation of a 7-segment counter using digital logic gates (and, or, not). Three pulsed sources are required at A,B,C and should count out the binary 000-111. This is manufacturable and has a PCB design for it!... show more3 Comments
7 Stars
Frantic Plum Pip boy
como puedo corregir este codigo para que funcione en flux.io import time import random import matplotlib.pyplot as plt import io import base64 from fluxio import Flow flow = Flow() @flow.task def linear_search(arr, target): for i in range(len(arr)): if arr[i] == target: return i return -1 @flow.task def binary_search(arr, target): low = 0 high = len(arr) - 1 while low <= high: mid = (low + high) // 2 if arr[mid] == target: return mid elif arr[mid] < target: low = mid + 1 else: high = mid - 1 return -1 @flow.task def measure_time(func, arr, target): start_time = time.time() func(arr, target) end_time = time.time() return end_time - start_time @flow.task def generate_data_and_measure(): sizes = [100, 1000, 5000, 10000, 50000, 100000] linear_times = [] binary_times = [] for size in sizes: arr = random.sample(range(size * 2), size) target = random.choice(arr) sorted_arr = sorted(arr) linear_time = measure_time(linear_search, arr, target) binary_time = measure_time(binary_search, sorted_arr, target) linear_times.append(linear_time) binary_times.append(binary_time) return sizes, linear_times, binary_times @flow.task def plot_results(sizes, linear_times, binary_times): plt.plot(sizes, linear_times, label='Búsqueda Lineal') plt.plot(sizes, binary_times, label='Búsqueda Binaria') plt.xlabel('Tamaño del Array') plt.ylabel('Tiempo de Ejecución (segundos)') plt.title('Análisis de Complejidad Temporal') plt.legend() plt.grid(True) buf = io.BytesIO() plt.savefig(buf, format='png') buf.seek(0) img_str = base64.b64encode(buf.read()).decode('utf-8') plt.close() return img_str @flow.task def main(): sizes, linear_times, binary_times = generate_data_and_measure() img_str = plot_results(sizes, linear_times, binary_times) return img_str if __name__ == "__main__": flow.run(main)... show more1 Comment
1 Star
Binary Clock
A binary LED clock. Uses the 12 hour system and displays using on/off of LEDS to represent 1/0 of binary. The clock does not automatically set itself and requires the use of three button at the top to set it. Its powered by a 5v power supply.... show more17 Comments
7-Segment PCB
This is a simulation of a 7-segment counter using digital logic gates (and, or, not). Three pulsed sources are required at A,B,C and should count out the binary 000-111. This is manufacturable and has a PCB design for it!... show more3 Comments
CD4052BE
Texas Instruments presents the CD4051B, CD4052B, and CD4053B series, a family of CMOS single 8-Channel, differential 4-Channel, and triple 2-Channel analog multiplexers or demultiplexers with logic-level conversion. Engineered for precise, reliable control of analog and digital signals, these components are characterized by their wide range of signal handling (3 V to 20 V for digital and up to 20 VP-P for analog signals), low ON resistance (125 Ω typical over 15 VP-P signal input range for VDD - VEE = 18 V), high OFF resistance (+100 pA typical channel leakage at VDD - VEE = 18 V), and minimal quiescent power dissipation (0.2 μW typical at VDD - Vss = VDD - VEE = 10 V). They come equipped with on-chip binary address decoding for easy integration and minimized system logic complexity. Available in a variety of package types, including CDIP, PDIP, SOIC, SOP, and TSSOP, these multiplexers/demultiplexers support a broad spectrum of analog to digital and digital to analog conversion applications, signal gating, factory automation, and other uses where reliable signal handling is crucial. With parametric ratings at 5 V, 10 V, and 15 V, and an operational temperature range of -55°C to 125°C, these components are also 100% tested for quiescent current at 20 V, assuring dependable performance across diverse environmental conditions.... show more1 Comment
7-Segment PCB 3F6C
This is a simulation of a 7-segment counter using digital logic gates (and, or, not). Three pulsed sources are required at A,B,C and should count out the binary 000-111. This is manufacturable and has a PCB design for it!... show moreSecret Crimson Hoverboard
Circuit Overview The circuit you're describing is a digital counter that uses an LDR (Light-Dependent Resistor) and a transistor to detect wheel rotations. The counter's output is then displayed on a seven-segment LED display. Here's a breakdown of the components and their roles: 1. Wheel Rotation Detection (LDR and Transistor) * LDR: The LDR acts as a sensor to detect changes in light intensity. You can mount it on the wheel' or near it, with a reflective or non-reflective surface attached to the wheel. As the wheel rotates, the LDR will be exposed to alternating light and dark conditions, causing its resistance to change. * Transistor: The transistor (e.g., a 2N2222 NPN BJT) is used as a switch or amplifier. The changing resistance of the LDR is used to control the base current of the transistor. When the LDR's resistance drops (more light), the transistor turns on, and when the resistance increases (less light), the transistor turns off. This converts the analog change in light into a digital ON/OFF signal (a pulse). 2. Counter (7490) * 7490 IC: This is a decade counter, meaning it can count from 0 to 9. The output of the transistor (the pulses) is fed into the clock input of the 7490. Each pulse represents one rotation of the wheel, and the 7490 increments its count accordingly. The 7490 has four outputs (Q0, Q1, Q2, Q3) that represent the BCD (Binary-Coded Decimal) equivalent of the count. 3. BCD to Seven-Segment Decoder (7446) * 7446 IC: The 7446 is a BCD-to-seven-segment decoder/driver. Its job is to take the 4-bit BCD output from the 7490 and convert it into a signal that can drive a seven-segment LED display. It has seven outputs (a, b, c, d, e, f, g), each corresponding to a segment of the LED display. 4. Seven-Segment LED Display * Seven-Segment Display: This display is used to show the count. The 7446's outputs are connected to the corresponding segments of the display. 5. Power Supply and Other Components * Power Supply: A regulated DC power supply (e.g., 5V) is needed to power all the ICs and components. * Resistors: Resistors are used for current limiting (e.g., for the LDR and the LED display) and biasing the transistor. * Capacitors: A capacitor might be used for debouncing the signal from the transistor to prevent multiple counts for a single rotation. Conceptual Connections Here is a step-by-step breakdown of how the components would be connected: * LDR and Transistor: * The LDR and a current-limiting resistor are connected in series across the power supply. * The junction between the LDR and the resistor is connected to the base of the NPN transistor. * The emitter of the transistor is connected to ground. * The collector of the transistor, with a pull-up resistor, becomes the output for the pulse signal. * Transistor to 7490: * The output from the transistor's collector is connected to the clock input of the 7490 IC. * The 7490's reset pins (MR and MS) should be connected to ground for normal counting operation. * 7490 to 7446: * The BCD outputs of the 7490 (Q0, Q1, Q2, Q3) are connected to the BCD inputs of the 7446 (A, B, C, D). * 7446 to Seven-Segment Display: * The outputs of the 7446 (a, b, c, d, e, f, g) are connected to the corresponding segments of the seven-segment display. * Crucially, you need to use current-limiting resistors (e.g., 330Ω) in series with each segment to protect the LEDs from high current. * The common terminal of the seven-segment display is connected to the power supply (for a common anode display) or ground (for a common cathode display). This setup creates a chain reaction: wheel rotation changes light, which changes LDR resistance, which turns the transistor on/off, generating a pulse. This pulse increments the 7490, and the 7490's output is decoded by the 7446, which then displays the count on the seven-segment LED.... show more