RS485 Circuit Boards

Hi makers!

Description

  1. Circuit Overview: RS-485 Transceiver Module
    This circuit is a design for an RS-485 communication interface module. Its primary purpose is to convert standard serial logic levels (TTL/CMOS, like those from a microcontroller) into differential RS-485 signals. This allows for robust, long-distance communication (up to 1200 meters) and communication between multiple devices on the same bus (multi-drop).

  2. Functional Blocks Description
    • Power Supply Section:
    J2 (Power): The input connector for 5V power.
    C1 (10µF) & C2 (100nF): These are decoupling capacitors. They smooth out voltage fluctuations and filter noise from the power supply to ensure the chip operates stably.
    R5 (1k) & D1 (LED): A simple power indicator circuit. When 5V is applied, the LED lights up to show the module is powered.
    • The Transceiver (U1 - MAX485/LTC485):
    This is the heart of the circuit. It is a half-duplex transceiver, meaning it can either transmit or receive data at one time, but not both simultaneously.
    Pins 1 (RO) & 4 (DI): Receiver Output and Driver Input. These connect to the microcontroller's RX and TX pins.
    Pins 2 (RE) & 3 (DE): Receiver Enable (active low) and Driver Enable (active high). These control the direction of data flow.
    Pins 6 (A) & 7 (B): The differential bus lines.
    • Control Interface (J1 - Pins_1):
    This 4-pin header connects to the microcontroller (Arduino or any other).
    Resistors R1, R2, R3, R4 (10k): These are pull-up resistors connected to +5V.
    R2 & R3: Pull RE and DE high. Since DE is active-high and RE is active-low, pulling them both high puts the chip in Transmit Mode by default.
    R4: Pulls DI high. This ensures that when the chip is transmitting (default state), it sends a logic "1" (Mark state). This is crucial for RS-485 to keep the bus in a known "idle" state when no one is talking.
    • RS-485 Bus Interface (J3 - Pins_2 & Right Side):
    R8 (120Ω): This is the termination resistor. It matches the characteristic impedance of standard twisted-pair cables to prevent signal reflections (echoes) at the end of the line.
    R6 (20k) & R7 (20k): These are bias resistors. R7 pulls line A high and R6 pulls line B low. This creates a "fail-safe" condition. If all devices on the bus stop transmitting, the voltage difference (A > B) ensures the receiver reads a logic "1" (idle state) rather than random noise.
    J3: The connector that plugs into the actual RS-485 network cables.

  3. Arduino Usage Case

    This module is commonly used to connect an Arduino to industrial equipment (like PLCs, VFDs, or sensors using Modbus) or to create a long-distance network between multiple Arduinos.

    Wiring to Arduino

    You would connect the J1 header to your Arduino as follows:

    • Arduino TX → DI: Serial data out.

    • Arduino RX → RO: Serial data in.

    • Arduino Control Pin (e.g., Pin 2) → RE and DE. Why connect them together? When the Arduino pin is HIGH: DE=1 (Driver On), RE=1(Receiver Off). The Arduino is Transmitting. When the Arduino pin is LOW: DE=0(Driver Off), RE=0 (Receiver On). The Arduino is Receiving.

Before sending a PCB off for manufacturing, I prefer to experiment using either a breadboard or a test board. After that, an order is placed with JLCPCB.

*This description was created using AI.

*Most of the time I use salvaged components or buy from local store, but I tried to build a BoM for you too using LCSC.com supplier.

*The project is presented as is, made for hobby projects.

8794743565584736256

8794743565610172416

#PCB# #RS485#

Makers & Education Spaces
LED Cube

Hi makers!

As you can see in the title, we have a PCB with LEDs, many LEDs, it's a 4x4 LEDs cube. I've been planning to build such a dynamic ornament for a long time, the first step I took was designing this PCB. I was a bit nervous because I designed a PCB with thin, closely spaced traces, and—as you can see—the board has quite a few cutouts, but JLCPCB did a pretty good job.

Totaling 64 5mm LEDs, the colors are your choice, distributed in a 4x4 matrix format (so 16 LEDs per layer, 2cm distance between LEDs) on 4 layers, it's a normal-sized cube, not very complex but which can be easily controlled using a board of your choice (Arduino, Rapsberry Pi, ESP32 and so on). I have blue LEDs, and I opted for blue color PCBs; we have the electronic diagram available, and on the PCB are noted the points where the fixing and interconnection elements (1mm wire diameter) of the layers will be soldered.

If you follow the circuit, you will easily figure out where the anodes and cathodes are placed on the PCB.

Components used:

Mostly the necessary things used are:

• 64x LEDs, either 3mm or 5mm, the color is your choice;

• 16x 220Ω resistors [TH];

• 2x 2N2222 transistors;

• 4x 10kΩ resistors;

• microcontroller board (e.g. ATMega);

• PCB of course;

• some male/female pin headers;

• 1mm copper rod;

• quite a bit of manual work...and patience.

Source: https://youtu.be/TesnKjba0l0?si=OuD4Gcqzatl7r7Dd

I did not create this circuit, I just designed the PCB for my own use.

8794727880615559168

8794727880636125184

8794727881227792384

8794727880817291264

8794729611038183424

8794729610220969984

8794729610926153728

8794729610896252928

8794729611491844096

8794729611487784960

8794729610271707136

8794729610934407168

8794729612116795392

8794729610913300480

#PCB# #LED#

Makers & Education Spaces
Twilight circuit

Hello makers!

The light-operated electronic switch is a common electronic device in automation equipment, security systems, electronic counters, various remote controls, etc. It is very sensitive to light, responds quickly to its variations and has reliability in use. The assembly uses a photoresistor (LDR-Light Dependent Resistor) as the transducer, LDR which determines the value of the threshold (switching) voltage at the base of the transistor. The RV1 potentiometer, connected in series with the LDR, by the position of its cursor, determines the light actuation threshold of the relay, so the sensitivity of the electronic switch. The potential in the electrical node LDR-RV1, taken from the base of TR2 by R2, depending on the voltage value, commands 'On' or 'Off' the respective transistor. Q2 is ordered from the collector of Q1. Topologically (electrically) analyzing, the assembly Q2-Q1 forms a switch with hysteresis, which makes the relay actuators not intermittent at the same time with small variations in light intensity around the threshold (adjusted from RV1). The desired sensitivity is adjusted to light / dark, at the desired threshold, maneuvering the RV1 slider. LDR can be a photoresistor worth 4k7 ... 100k.

Bill of materials available below.

Enjoy it!

*Most of the time I use salvaged components or buy from local store, but I tried to build a BoM for you too using LCSC.com supplier.
*The project is presented as is, made for hobby projects.

LDR_Switch_Relay_AFE.xlsx

8794741924274159616

8794741579737522176

#PCB#

Makers & Education Spaces
A DIY charger for 12V battery

Hello makers!

8794739154125111296

The schematic presented in this project is actually a constant current source to which a current limiting section composed of Q1, R2 and R3 has been added.

The moment the current required for charging is exceeded, it is diverted through Q1 and the output voltage drops. The output voltage is: 1.2x (RV1+R5+R4)/R4 volts. The current limiting occurs when the current is approximately 0.6/R3 amps.

For a 6V battery that requires a faster charge, the charging voltage is 3x2.45=7.35V (3 cells, at 2.45V per cell). So the total value for R5+RV1 is then about 585 Ohms. For a 12V battery the value for R5+RV1 is 1290 Ohms.

For the power supply to work efficiently the input voltage must be at least 3V higher than the output voltage needed to charge the battery.

RV1 is a standard potentiometer capable of handling enough watts for the application in which the circuit is used.

The LM317 must be cooled with a sufficiently large heat sink (ultimately it depends on how much you ask of it).

Except for the situation when the circuit is used for charging car batteries or accumulators, it can also be used as a stabilized voltage source in various applications.

The diode bridge D1 is rated at 2A, and the transformer is a voltage drop from 230Vac, I don't know what voltage it has in the secondary but I trust that I did it correctly.

Gerber files and BoM for PCB are available in the download section as well.

Enjoy it! 🤓

I just designed the PCB for my own use, I am not the original author so check the source link.

*Source:

https://2.bp.blogspot.com/-ZEuHsBYY0IY/VtiDgHi8ouI/AAAAAAAAONM/aonvi6pJgT4/s1600/Incarcator%2Bbaterii%2Bauto.gif

8794739504370466816

8794739502759313408

8794739503942647808

8794739504302682112

8794739503249911808

8794739504685174784

8794739503762427904

Makers & Education Spaces
Can't decide on the PCB color? #6 White

Hi makers!

This time, the PCB color is very important for the project I want to build. I had a white PCB made at JLCPCB that features many LEDs in white packages as well. I plan to build a more animated and at the same time more interactive panel, practically the easiest way is to do this using LEDs, but not just any LEDs, but the addressable WS2812B ones. Why wouldn't I use LED strips? Because they don't produce the desired effect, I've tried this in the past, by just sticking an LED strip on the interior walls I don't get a really good looking panel. That's why I want to use PCBs because I will basically have a perpendicular view over the LEDs.

  1. I was inspired by the classic LED matrix, basically the panel is built from PCBs but in the shape of a hexagon, placed together, on which I place 144 LEDs and capacitors. I thought of separating the panel like this 6+4, meaning 6 PCBs placed vertically on 2 columns to create a kind of waterfall effect, I will have to experiment with SW libraries, FadeLed rather (to obtain a Matrix-like effect), and the other 4 PCBs will be placed in such a way that the overall appearance of the panel is not too linear, having different, more dynamic and diverse effects.

  2. I will also need an enclosure for these PCBs, this is where 3D printing comes in, which allows me to build enclosures the way I want, on a puzzle model. I have a friend who owns a printer. The cover will be white, but I will have to experiment when I have the PCB with LEDs, I will try to make the panel hangable but at the same time placeable on a table stand for example. But I will have to make durable joints because it will add some weight.
    For the power supply I will need a 5V with high current capability, because these LEDs will consume some current.

  3. Now, addressable LEDs are not called that by chance, I will need a microcontroller, and for that I will use the well known Nano and Arduino IDE. This allows me to create some scenes or operating modes. I do not exclude the use of an ESP32 and control via phone, but the internet connection is unstable. Maybe things will improve along the way. 😁
    For the interactive and control part I will start with a button/touch button to change the color of the 6 cascade PCBs, and the other 4 will have different effects (wheel, stars, Gaussian Pulse, etc). By experimenting I can even use an IR sensor or ultrasonic, which will allow me to control touchless.

  4. The manual work will mainly consist of soldering a lot of wires, each hexagon PCB would have 6 power points, which I have to gather in a single point at the power supply. Then there are 2 more wires that connect the PCBs. Fortunately there is no need for many wires connected to the microcontroller board.

    Maybe I can manage to get a good design in the 3D printing stage that does not involve drilling holes, screws, but at the same time it has to be a solid design.
    

    f56c6b13f2214874807957972fd2221d.webp

    8794722064864530432

    8794722064965869568

    #PCB# #WS2812B#

PCB
LM1084 voltage regulator

Hi makers!

This schematic represents an Adjustable Linear Voltage Regulator (Power Supply) circuit. Its primary purpose is to take a higher, DC input voltage and convert it into a lower, stable, and adjustable DC output voltage.

Before sending a PCB off for manufacturing, I prefer to experiment using either a breadboard or a test board. In this case, however, experimenting on a breadboard is easy. After that, an order is placed with JLCPCB.

1. Core Component: LM1084-ADJ

The heart of the circuit is the U1 LM1084-ADJ.

Function: It is a Low Dropout (LDO) positive voltage regulator.

Capacity: The LM1084 is capable of handling high currents (up to 5 Amps with a serious heatsink), making this a robust power supply compared to standard regulators like the LM317 (which handles 1.5A).

2. Input Stage

• J1 (9-20V): This is the input connector. It accepts a DC voltage between 9 Volts and 20 Volts.

• C1 (330uF) & C3 (100nF): These are input capacitors.

• C1 is a large bulk capacitor that smooths out low-frequency ripples from the power source.

• C3 is a small ceramic capacitor that filters out high-frequency noise and prevents the regulator from oscillating.

3. Voltage Adjustment

This is how the output voltage is controlled:

• R1 (120R): This resistor is connected between the Output and the Adjust pin. It sets the reference current. A value of 120Ω is standard for these regulators to ensure a minimum load current (approx. 10mA) so the regulator stays stable.

• RV1 (5k Potentiometer): This is a variable resistor connected to the Adjust pin. By turning this knob, you change the resistance, which changes the output voltage.

The Formula: The output voltage is determined by the formula: Vout=1.25V×(1+RV1R1)V_{out} = 1.25V \times (1 + \frac{RV1}{R1})Vout=1.25V×(1+R1RV1).

With a 120Ω fixed resistor and a 5k variable resistor, the theoretical range is roughly 1.25V to ~53V.

However, since the input is max 20V, the output can never exceed the input (minus a small "dropout" voltage of ~1.5V). So the practical max output is around 18V. The label 3.3-16V on J2 indicates the intended safe operating range.

4. Protection Diode (Top)

D1 (1N4007): This diode is a protection component. It is connected in reverse bias (Cathode to Input, Anode to Output).

Function: If the input power is suddenly disconnected or shorted to ground, the large capacitors on the output side (C2) would try to discharge back through the regulator, which could destroy it. D1 provides a safe path for this current to flow back to the input side, protecting the LM1084 chip.

5. Output Stage

• C4 (100nF) & C2 (100uF): These are output capacitors. They improve the transient response (how fast the regulator reacts to load changes) and ensure the output voltage is smooth and stable.

• R2 (1k) & D2 (LED): This is a simple indicator circuit. When the output voltage is present, current flows through the resistor and lights up the LED, indicating the power supply is active.

• J2 (3.3-16V): This is the output connector where you would connect your load (the device you are powering).

This description was created partly using A.I.

Most of the time I use salvaged components or buy from local store, but I tried to build a BoM for you too using LCSC.com supplier.

The project is presented as is, made for hobby projects.

8794736552599531520

8794736552481820672

8794736552771903488

8794736553656901632

Enjoy it! 🤓

#PCB# #LM1084#

Makers & Education Spaces
Can't decide on the PCB color? #5 Blue

Hi makers!

Another PCB completed, and a different color chosen—blue. I created a simple, minimalist PCB (again via JLCPCB) that allows me to use a microcontroller from the ATMega family. I made this minimal platform for me, I can use it with an ATMega8 or ATMega328 microcontroller, or any compatible microcontroller. I made a simpler version, giving up the programming circuit via USB and others, like voltage regulator, resulting in a PCB that allows us access to the GPIO of the microcontroller.

For microcontroller programming, you can use a method similar to that of Arduino platforms, load a bootloader in the microcontroller, and with an FT232RL TTL to USB adapter you can program the microcontroller very easy , as it is done on Arduino boards. There is also a green LED indicator on the PCB for voltage, and a red LED that we can use to load and run a Blink sketch.

eb558b3f2c744803bf98c13f00515ba7.webp

1. Microcontroller & Clock Circuit (The Core)

  • U1 (ATmega8A-AU / ATmega328): This is the brain. The schematic shows the TQFP-32 SMD package pinout. It is compatible with both ATmega8 and ATmega328 (pin-compatible for the most part).
  • Y1 (16MHz Crystal) & C1, C2 (20pF): This is the external clock circuit. 16MHz is the standard speed for Arduino boards (running at 5V). The capacitors C1 and C2 are load capacitors required for the crystal to oscillate stable.

2. Power Supply & Indicators

  • Decoupling Capacitors (C4, C5, C6, C7, C3): 10µF (bulk) and 100nF (high-frequency noise filtering) capacitors near the VCC pins (AVCC and VCC) and the AREF pin. This is crucial for stable operation, especially for the ADC (Analog to Digital Converter).
  • D3 (Green LED) & R3 (1k):Power Indicator. It is connected directly to VCC (through a current-limiting resistor). It will light up as soon as the board is powered, confirming voltage is present.
  • J6 (ICSP_2): Power header (VCC and GND), likely used to supply power to the board or tap power from it.

3. Reset Circuit

  • R1 (10k): A pull-up resistor keeping the RESET pin (Pin 29) HIGH (active state) during normal operation.

  • SW1 (SW_Push): A tactile button that pulls the RESET pin to Ground when pressed, manually resetting the microcontroller.

  • Auto-Reset Circuit (C8, D1, "PTR" net):

    • The label "PTR" connects to the DTR (Data Terminal Ready) pin of your FT232RL adapter.
    • C8 (100nF): This capacitor couples the DTR signal to the RESET pin. When you open the serial port to program (like in the Arduino IDE), the DTR line pulses, pulling RESET low momentarily to put the chip into the bootloader. This allows for "Auto-Reset" programming just like a real Arduino.
    • D1 (1N4148): This diode is there to protect the reset line or ensure fast discharge of the capacitor C8 when the button is pressed, preventing conflicts between the manual button and the auto-reset circuit.

4. User Interface (The "Blink" LED)

  • D2 (Red LED) & R2 (1k): LED for testing.

    • Note on Pinout: On an ATmega328, PB1 corresponds to Arduino Digital Pin 9.
    • Standard Arduino Note: The standard "Blink" sketch usually uses Pin 13 (PB5). Since your LED is on PB1 (Pin 9), you would need to change the pin number in the Blink sketch to 9 (or define LED_BUILTIN 9) to see it blink, unless you have customized the bootloader/board definition.

5. Connectivity & Headers (GPIO Access)

The main purpose of this board is to break out the pins.

  • J1 (Pins_Left) & J3 (Pins_Right): These headers break out almost all the GPIO pins (Port B, C, D) and Analog pins (ADC6, ADC7, AREF). This allows you to easily connect sensors, modules, or wires.

  • J2 (ISCP_1): This is the ICSP (In-Circuit Serial Programming) header.

    • It exposes PB3 (MOSI),** PB4 (MISO), and PB5 (SCK)**.
    • This is used to burn the bootloader initially using a programmer like a USBasp or AVR ISP. Once the bootloader is installed, you can switch to using the FT232RL method you described.

8794723161474105344

8794723161210675200

The circuit description was created using A.I.

*****The circuit is presented as is, made for hobby projects.

#PCB# #Microcontroller#

PCB
Pulse Width Modulation with NE555

Hi makers!

One of the most fundamental problems in robotics is controlling the speed of a DC motor. The most common speed control method is PWM (Pulse Width Modulation). Pulse Width Modulation is the process of varying the power delivered to a device by switching it on and off at a specific frequency. These on/off switching intervals are referred to as the "Duty Cycle." The diagram below shows waveforms for 10%, 50%, and 90% duty cycles.

https://electrodb.ro/control-turatie-motor-prin-varierea-factorului-de-umplere-pwm/

Thus, the duty cycle describes the pulse width as a percentage. A 10% duty cycle means the device receives current for 10% of the cycle, while it receives none for the remaining 90% of the time. A 100% duty cycle means the device receives current continuously, rendering PWM unnecessary.

These signals are sent to the motor at a sufficiently high frequency so that the pulsing itself does not adversely affect the motor's operation. The end result of the PWM process is that the total power delivered to the motor can be adjusted from 0% to 100% duty cycle, ensuring high efficiency and stable control.

In the PWM circuit, the 555 timer is configured as an astable oscillator. This means that once power is applied, the 555 will oscillate without requiring any external trigger.

Circuits of this type allow for motor speed control ranging from 0% to 100% while maintaining constant torque. In principle, the NE555 circuit generates a signal at a specific frequency that is applied to a monostable stage, the timing period of which is determined by the value of a resistor. While N-channel transistors can be used, circuit variants employing P-channel transistors also exist; the difference in the latter case is that the load is placed between the source and the power ground, while the drain is connected to the power rail (the positive voltage supply).

I just designed the PCB for my own use, I am not the original author so check the link source.
Source:

https://electrodb.ro/control-turatie-motor-prin-varierea-factorului-de-umplere-pwm/

This project is presented "as is" and is intended for personal use. Most of the time I use salvaged components or buy from local store.

8794735022815092736

8794735022848782336

I think you can easily tell who I had this PCB made by (*manual assmebled). 🤓😁

8796544634820542464

8796544635252420608

#PCB# #NE555#

Makers & Education Spaces
Can't decide on the PCB color? #4 Yellow

Let me also show you a lighter PCB color: yellow. Its the only shade available from JLCPCB, but its actually quite good and uniform—meaning there are no spots or imperfections—even though its a PCB with a lot of traces.

I salvaged an electronic board that contains an AT90CAN128 in a QFP package. Initially I thought it was an ATMega128 MCU (I also use an ATMega328, but I don't know all of them 😅), but then I did a search on the internet and discovered that it is a similar MCU that has some extra capabilities.

I plan to use this MCU to create a programmable board, through methods known to me, that is, by consulting the internet (forums and so on), and I even found information to program it using the well-known Arduino IDE (and from here we all know what a wide world has formed around Arduino 🤓), but I also have difficulties on this path. Given that the MCU I found is in an SMD package, I cannot use it in optimal conditions on a test wiring, perforated, so I need to design a good PCB. t will be a 2 layers PCB, it is relatively minimalist, in the center of attention being the AT90CAN128, and next to it I will place male pin headers to facilitate access to the GPIOs. This is the electronic circuit (quite complicated to understand 😆😅):

Maybe you think the dimensions are a bit generous, but I don't mind, it's one sample.

Let's not forget the bill of materials, except for the pin headers, of which I don't have many, the rest of the components are recovered from other electronic boards. Regarding the other components (resistors, capacitors) I will use both SMD and TH, I have them on hand (just what I said at the beginning). This board will be powered by 5V, so it's definitely handy, plus many electronic modules work at 5V.

With the help of the Arduino IDE and the available libraries, I will install the board and program the AT90CAN128 via a USB AVR programmer (from the MCU I need the signals: Reset, Mosi, Miso, Sck). What I can do next I have many options, if I have a board with many ports I can use it with environmental sensors, 16x2 display, common modules after all. I have enough ports to attach many LEDs, and for some time I have been thinking about an application with TTP223 touch buttons and RGB LEDs, to create a dynamic light panel or a small table, depending on resources (3D printing would also be needed and this part is a bit tricky) and time. But I also have a more feasible and equally brilliant alternative, 4x4x4 LED cube.In the end, I think that the outline of an application goes something like this:

e002ed22dc7b468993c1db60fec6186e.png

So, to successfully build this board I would need:

  1. Manufacture a professional PCB;
  2. Assemble the components that I recovered from other boards;
  3. Check the programming instructions with Arduino IDE and software libraries;
  4. Take out the USB AVR programmer from the monkeys box 🙈.

So, after solving all the above, I still have to experiment with the programming tools and then we are ready to go.

8794717967935762432

8794717967978516480

PCB