Universal Instrumentation Amplifier Module for SOIC8 Package with On-Board Reference

This is a universal instrumentation amplifier module for SOIC8 package. Various configurations are possible by selecting the right components. The board helps users to develop instrumentation amplifier circuits and it can accommodate SOIC8 devices such as INA828 from Texas Instruments. All capacitors are ceramic type size 0805 and resistors are also size 0805. It supports dual supply or single supply, install R12 0 Ohms for a single supply usage. Various capacitors and resistors can be installed as per application requirements. D1 is the Power LED. Board also has 2.5V precision reference voltage chip. Jumper J1 is provided to select the 2.5V reference voltage to the IN828 Amplifier.  An external reference voltage can be fed through CN1 or CN2 Pin 2, Open Jumper J1 in this case. The project also consists of resistors R3, R4, R7, and R8 to create bridge configurations for various sensors. CN3 is provided for sensor input.

Note: The project consists of bridge configuration circuitry which helps with various sensor interfaces. Install R3, R4, R7, and R8 as per requirement and use CN3 for Sensor input.

Features

  • Single Supply: 4.5 V to 36 V, Dual Supply: ±2.25 V to ±18 V
  • On Board Reference Voltage Generator Chip (Available Reference 2.5V, 5V, 1.2V)
  • On Board Power LED
  • On Board Jumper J1 for Reference Voltage Selection, External or Internal
  • Header Connector for Inputs, Outputs, and Supply
  • Gain Adjustable 1 to 1000 Using Multiturn Trimmer Potentiometer
  • PCB Dimensions 29.05 x 27.31 mm

Applications

  • Bridge Amplifiers
  • ECG Amplifiers
  • Pressure Sensors
  • Medical Instrumentation
  • Portable Instrumentation
  • Weight Scales
  • Thermocouple Amplifiers
  • RTD Sensor Amplifiers
  • Data Acquisition

Connections and Other Details

  • CN1: Pin1=VCC, Pin2=Voltage Reference 2.5V, Pin3= -Signal Input, Pin4=GND, Pin5= +Signal Input, Pin5=-VEE Supply Input
  • CN2: Pin1=VCC + Supply, Pin2=Voltage Reference 2.5V, Pin3= Output, Pin4=GND, Pin5= NC, Pin5=-VEE Supply
  • CN3: Sensor Input for Bridge Configuration
  • PR1: Multi-Turn Potentiometer for Gain Adjust (Gain 1 to 1000)
  • J1: External or Internal Reference Selection (Internal Reference 2.5V)
  • D1: Power LED

Schematic

Parts List

NOQNTYREF.DESCMANUFACTURERSUPPLIERSUPPLIER PART NO
11CN1,CN26 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5319-ND
22CN32 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5315-ND
313R1,R3,R4,C1,R2,C2,C3,C5,R6,C6,C8,R11,R12,R13,R14,R8DNP/AS PER USER REQUIRMENT DIGIKEY
45C4,C8,C9,C10,C11100nF/50V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
51SHUNT FOR JUMPER-J1SHUNTSULLINS CONNCTDIGIKEYS9001-ND
62C7,C1210uF/25V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
71D1LED RED SMD SIZE 0805OSRAMDIGIKEY475-1278-1-ND
81J1JUMPER/2PIN MALE HEADER 2.54MMWURTHDIGIKEY732-5315-ND
91PR150K MULTI TURN POTBOURNSDIGIKEY3296W-503LF-ND
103R5,R9,R100E SMD SIZE 0805YAGEO/MURATADIGIKEY
111R149.9E 1% SMD SIZE 0805YAGEO/MURATADIGIKEY
121R151K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
131U1INA828 SOIC8TIDIGIKEY296-48914-1-ND
141U2REF5025 VSSOP8TIDIGIKEY296-24499-1-ND

Connections

Gerber View

Photos

Video

INA828 Datasheet

Universal Instrumentation Amplifier Module for VSSOP8 Package with On-Board Reference

This is a universal instrumentation amplifier module that can be used to develop and test instrumentation amplifier circuits. The board can accommodate VSSOP8 devices such as INA126, INA333, INA155, INA156 from Texas Instruments. All capacitors are ceramic type with size 0805 and resistor size is also 0805. It supports dual supply or single supply. You should install R8 0 Ohms for a single supply usage. Various capacitors and resistors can be installed as per application requirements. D1 Power LED. Board has also a 2.5V precision reference voltage chip. Jumper J1 is provided to select the 2.5V reference voltage to the INA333 Amplifier. An external reference voltage can be fed through CN1 Pin 2. In this case Open Jumper J1. Also, a small prototyping area is provided.

Note: The board can be used with various amplifiers such as INA126, INA333, INA155, and INA156

Features

  • Single Supply 5V DC for INA333 (Range 1.8V to 5.5V), Single Supply: 4.5 V to 36 V, Dual Supply: ±2.25 V to ±18 V
  • On Board Reference Voltage Generator Chip (Available Reference 2.5V, 5V, 1.2V)
  • On Board Power LED
  • On Board Jumper J1 for Reference Voltage Selection, External or Internal
  • Header Connector for Inputs, Outputs, and Supply
  • Small Prototype Area Provided
  • Gain Adjustable 1 to 1000 Using Multiturn Trimmer Potentiometer
  • PCB Dimensions 37.15 x 19.21 mm

Applications

  • Bridge Amplifiers
  • ECG Amplifiers
  • Pressure Sensors
  • Medical Instrumentation
  • Portable Instrumentation
  • Weigh Scales
  • Thermocouple Amplifiers
  • RTD Sensor Amplifiers
  • Data Acquisition

Connections and Other Details

  • CN 1: Pin 1=VCC, Pin2=2.5V Ref Out, Pin3=Signal -Input, Pin4=GND, Pin5=Signal +input, Pin6=-VEE
  • PR1: Gain Adjust Multiturn Pot 1 To 1000
  • D1: Power LED
  • Jumper J1: Internal Reference 2.5V Selection, Open for External Reference Input
  • U1: Reference Voltage Generator 2.5V Output
  • Resistor R8: Use 0Ohms for Single Supply, Open for Dual Supply Input

Schematic

Parts List

NO.QNTY.DESC.REF.MANUFACTURERSUPPLIERSUPPLIER PART NO
11CN16 PIN MALE HEADER PITCH 2.54MMWURTH732-5319-ND
28C1,C2,C3,R7,C7,C11,C12,R3DNP/AS PER USER REQUIRMENT
32C4,C1010uF/16V CERMIC SMD SIZE 0805MURATA/YAGEO
44C5,C6,C8,C9100nF/50V CERAMIC SMD SIZE 0805MURATA/YAGEO
61D1LED RED SMD SIZE 0805OSRAM475-1278-1-ND
71J1JUMPER- 2 PIN MALE HEADER PITCH 2.54MMWURTH732-5315-ND
81PR1100K MULTITURN TRIMMER POTBOURNS3296W-1-104
91R11K 5% SMD SIZE 0805MURATA/YAGEO
101R2100E 1% SMD SIZE 0805MURATA/YAGEO
124R4,R5,R6,R80E SMD SIZE 0805MURATA/YAGEO
131U1REF5025IDGKT 8VSSOPTI296-24499-1-ND
141U2INA333 8VSSOPTI296-23564-1-ND
151J1-SHUNTSHUNT FOR JUMPER J1SULLINS CONNECTS9001-ND

Connections

Gerber View

Photos

Video

INA333 Datasheet

Introducing the New ESP32-S3 with Camera

FireBeetle 2 Board ESP32-S3 (N16R8) AIoT Microcontroller with Camera (Supports Wi-Fi & Bluetooth)

FireBeetle 2 ESP32-S3 is a high-performance main controller built around the ESP32-S3-WROOM-1-N16R8 module. ESP32-S3-WROOM-1-N16R8 comes with 16MB Flash and 8MB PSRAM for storing more data. The acceleration for neural network computing and signal processing workloads provided by the ESP32-S3 chip makes the module an ideal choice for a wide variety of applications, such as speech recognition, image recognition, and so on.

Specifications

Basic Parameters

  • Operating Voltage: 3.3V
  • Type-C Input Voltage: 5V DC
  • VCC Input Voltage: 5V DC
  • Max Charging Current: 1A
  • Operating Temperature: -20 to 70℃
  • Dimension: 25.4x60mm/1×2.36”

Hardware Information

  • Processor: Xtensa® dual-core 32-bit LX7 microprocessor
  • Main Frequency: 240 MHz
  • SRAM: 512KB
  • ROM: 384KB
  • Flash: 16MB
  • PSRAM: 8MB
  • RTC SRAM: 16KB
  • USB: USB 2.0 OTG full-speed

WIFI

  • WIFI Protocol: IEEE 802.11b/g/n
  • Bandwidth: Support 20 MHz and 40 MHz at 2.4 GHz band
  • WIFI Mode: Station, SoftAP, SoftAP+Station combined mode
  • WIFI Frequency: 2.4GHz
  • Frame Aggregation: TX/RX A-MPDU, TX/RX A-MSDU

Bluetooth

  • Bluetooth Protocol: Bluetooth 5, Bluetooth mesh
  • Bluetooth Frequency: 125 Kbps, 500 Kbps, 1 Mbps, 2 Mbps

Ports

  • Digital I/O x26
  • LED PWM Controller 8 Channels
  • SPI x4
  • UART x3
  • I2C x2
  • I2S x2
  • IR Transceiver: transmit channel x5, receive channel x5
  • 2×12-bit SAR ADC, 20 Channels
  • DMA Controller: transmit channel x5, receive channel x5

FireBeetle 2 ESP32-S3 offers an onboard camera interface for easy connection with a camera. Also, an independent camera power supply circuit is designed, which helps reduce interference from other signals to the camera. The board comes with an OV2640 camera that offers 2 megapixels, 68° FOV, and up to 1600*1200 resolution. Besides, its onboard, easy-to-connect GDI greatly saves the trouble of wiring for using with a screen. Meanwhile, the controller integrates a power management function, which allows users to charge a Li-ion battery and turn the hardware on/off.

Features

  • ESP32-S3 module with AI Acceleration
  • 16MB Flash & 8MB PSRAM, more storage space
  • Onboard camera interface & independent camera power supply, easy to connect and strong anti-interference
  • Power management integrated, support Li-ion battery charging and hardware On/OFF controlling
  • Onboard GDI for easy connection with screens
  • Wi-Fi and Bluetooth 5 dual-mode communication

In addition, FireBeetle 2 ESP32-S3 supports WiFi and Bluetooth 5 (LE) dual-mode communication, which reduces the difficulty of networking. Meanwhile, both Bluetooth Mesh protocol and Espressif WiFi Mesh are supported for more stable communication and a larger coverage area. With the support of Matter protocol, the microcontroller can be used to develop industrial standard smart home devices for a wider range of IoT and AIoT (Artificial Intelligence of Things)scenarios.

FireBeetle 2 ESP32-S3 can be programmed by Arduino IDE, ESP-IDF, and MicroPython. Both C and Python are supported.

Documents

Raspberry Pi Fleet Management with Qbee

A smart approach to tackle device management

In recent years, the popularity of Raspberry Pi has shot up, leading to a growing demand for efficient device management solutions. Currently, some solutions available for device management include:

  • Automated SSH logins
  • Pre-built image with adequate security measures in place.
  • Device management software/system.

The optimum choice, according to studies, is to employ a pull-and-state-based device management solutions. Interestingly pull and state-based systems ensure devices stay updated even during offline periods – and that the device will always remain at the desired functional level – regardless of when it was added to the system or last seen.

Qbee.io delivers an intuitive SaaS IoT device management platform that supports over-the-air (OTA) software updates and remote scripting for most embedded Linux devices, be it a single Raspberry Pi or fleets of business-grade edge devices. With automated IoT device administration and dynamic remote VPN access, a UI-based solution gives users complete control over their device deployments. This all-inclusive solution provides remote scripting, monitoring, over-the-air software updates, and remote access. Qbee’s user-friendly UI makes IoT device management solutions more accessible and allows users to focus on enhancing their core product.

Advanced Features

In addition to IoT device management, Qbee offers a host of other advanced features. Here’s a comprehensive list of Qbee’s true potential:

IoT Configuration Management

This is a great way to automate Linux systems with IoT configuration management. QBee’s built-in automation is incredibly useful for managing various aspects of the system, such as users, passwords, firewalls, NTP servers, package or software updates, ssh keys, and more. The advanced file distribution feature enables the distribution of files, certificates, and the execution of scripts. This product offers a comprehensive group policy feature that allows fleet devices to quickly obtain common or individual configurations, with the added benefit of templating options. The REST API allows easy integration with third-party systems, providing access to all configuration settings.

Security & Linux Hardening

Qbee provides extensive Linux hardening and security features that safeguard devices. This configuration management tool is highly effective in securely distributing ssh keys, managing user and password security, and ensuring optimal firewall settings. This tool keeps libraries up-to-date and conducts continuous CVE vulnerability scans on all Linux packages. It makes it easy to detect potential security issues and take action before any damage occurs.

IoT Remote Control

The SaaS solution offers a centralized platform to control a Raspberry Pi, industrial gateway, or any other Linux-based device. The web-based ssh shell and qbee-connect desktop tool are great ways for mapping remote ports to localhost. This makes it simple to use third-party applications like Node-RED. This feature enables VNC, WinSCP, and connection to SCADA systems, making it a versatile tool.

IoT OTA Software Update

With the constant evolution of applications and the Linux OS, IoT OTA updates, and a Docker orchestration engine are becoming increasingly essential. Qbee provides an easy, safe, and expandable way to distribute updates through a file manager, repository, or a CI/CD setup by utilizing  REST API to integrate with third-party services like Github or other platforms.

IoT Device Monitoring

Qbee is an amazing IoT device monitoring solution that gathers all the necessary metrics, such as software inventories, port usage, docker container status, connectivity, operational status, and more. Analysis tools are a great resource to quickly identify and resolve memory leaks, stalling processes, or network inconsistencies, allowing users to seamlessly optimize performance and minimize downtime.

Remote Scripting

Users can efficiently distribute and execute scripts on multiple devices remotely. Qbee’s “command to run” function is designed to trigger a new script to run as soon as a change in the script is detected. Additionally, the feedback loop feature makes it easy to track the output of any operation. Advanced templating makes it easy to configure and execute remote commands or run advanced scripts with post commands and in-order execution on a group or individual device level.

In a nutshell, Qbee manages IoT edge devices properly and it offers,

  • IoT device management
  • Remote access VPN
  • Templated remote scripts
  • CVE vulnerability analysis
  • Github integration – CI / CD
  • Performance monitoring
  • A user-friendly UI & REST API
  • Zero development
  • Docker container management

Purchase Plan information:

All plans begin with a 14-day trial. You can sign up for Qbee on a monthly or annual basis – the latter offering a 10% discount. The free account enables users to connect two devices, whereas the paid ones include up to 20 devices. When it comes to pricing, Qbee offers a Startup plan (test and launch your IoT ideas) and a Pro plan – each one costing $89/ month and $269/ month, respectively. The Premium plan involves getting a price quote from the company and comes with a multitude of options, such as an SLA and personal account manager.

High Power DC Motor Speed and Direction Control using RC Transmitter – Arduino Compatible

The project presented here is a low-cost solution to control the speed and direction of a high-power brushed DC motor using RC (Radio Remote Control) transmitter. This is an Arduino-compatible board, consisting of an Atmega328 chip, 2 x Relay for motor direction control, MOSFET for speed control using PWM input, Tactile switch, Slide switch, and Connector for RC Receiver interface. Traditional DC motor controllers are based on solid-state circuitry known as H-Bridge. Here the H-bridge configuration is created using 2x high-power Relays which can handle high voltage as well as high current. Additionally, MOSFET Q3 is used to control the speed of the motor by applying a PWM signal. This MOSFET can be removed in case of only direction control is required. In this case short the Drain and source pin of MOSFET. The project requires 3 control input signals 2 x CCW/CW direction control, and 1x PWM input. All inputs are optically isolated to prevent noise and high voltage going into logic circuitry. A large size of heatsink is a must for MOSFET.

Note: This board will work with any standard RC remote. In this project, we tested it with HOTRC DS-600 6CH 2.4GHz Radio System. Standard RC radio outputs is 50Hz – 1mS(1000uS) to 2mS(2000uS)

Arduino Code and Programming

A new ATmega328 chip requires a bootloader. Refer to the connection diagram for the Arduino boot-loader and Arduino programming. The Arduino example code is available as a download. The user will able to control the speed and direction of the brushed DC motor using RC remote Joystick. Connector U4 is provided to connect the RC receiver. ATMEGA328 chip reads the RC signal and generates 2 x CW/CCW TTL signals for motor direction control and one PWM signal. Two direction control signals control the Relay RE1 and RE2, contacts of relay configured in such a way where bidirectional output is provided to the motor, MOSFET drives the PWM signal for motor speed control. All three signals have optocouplers U2, U5, and U6 between motor control circuitry and ATMEGA328 chip which provides noise immunity and high voltage/current going to the digital circuitry.

Arduino Code Credits: modified code, original author Tech at Home Channel

More Info, Boot-Loader, and Arduino Programming: https://docs.arduino.cc/built-in-examples/arduino-isp/ArduinoToBreadboard

 

Features

  • Power Supply for Relay and MOSFET 12V to 15V DC @ 100mA
  • Power Supply Motor 12V to 90V DC (Maximum 100V DC)
  • Motor Load 20Amps (Maximum 30Amps)
  • Optocoupler Between Micro-Controller U1 and 2X Relays and MOSFET for optical isolation
  • 2 x Inputs for Direction Control and Brake
  • One PWM Signal to Control the speed of Motor 0 to 100 % Duty Cycle
  • PWM Frequency up to 20Khz
  • 2x LEDs for direction indication
  • PCB Dimensions 97 x 93.82mm
  • 4 x 4mm Mounting Holes

Arduino Pin

  • Arduino Digital Pin D3 and D4 = Relay Control, DC Motor Direction Control, D3 High – D4 Low = CCW, D3 Low – D4 High = CW
  • Arduino Digital Pin D5 = MOSFET Gate Driver (PWM for Motor Speed Control) – Duty Cycle (0 to 100%) Frequency up to 20Khz
Note: The project has been designed for multi-purpose motor applications. For the RC receiver interface use the U4 connector, the user may not install the following components SW1, SW2, R16, R17, SW4, SW3, and PR1 as they are not required.

Read below for the power supply requirements. The project works well with 2 power inputs. One for the MOSFET Gate Driver/Logic supply and 2nd for the motor supply. Advisable to use 3 power inputs for complete isolation between the motor output power driver and the logic circuit.

Power Supply: The project requires 3 power inputs for complete isolation between the microcontroller and motor output power driver.

  • 5V Logic supply (Do not solder U1 LM7805 and R15) for full isolation between Micro-Controller U3 and motor output power 2 X Relay and MOSFET Q3, Use Pin 4 and Pin 5 of CN4 for 5V Power Input
  • 12V to 15V DC supply for MOSFET gate driver
  • Motor Power Supply 12V to 90V DC

The project also can work well with only 2 power inputs

  • 12V to 15V DC Gate Driver (Solder U1 LM7805 and Resistor R15) for Dual power input.
  • Motor Supply 12V to 90V

Single Power Supply for 12V to 15V Motor

  • The project can work with a single supply for a lower voltage (12-15V) motor, Install U1 LM7805, R15 Resistor.
  • Tie GND-Pin2 + GD-Pin2 and +12V-Pin1 + DC-L Pin 1 of the CN1 and CN2 and apply 12V to 15V

Arduino-compatible hardware consists following important components which can be used for various applications as per user requirements. 

  • ATMEGA328 Microcontroller
  • MOSFET to control the Speed of the motor with the help of PWM (Arduino Digital Pin D5)
  • 2 x Relay for Motor Direction Control (Arduino Digital Pin D3 and D4)
  • 3 Pin Header to Connect Radio Remote Receiver or Analog Input (Arduino A1) – Connector U4
  • Trimmer Potentiometer for Analog Input (Arduino A0) – Don’t Install for this project
  • CN4: Arduino Programming and Boot-Loader Connector
  • SW1, SW2 = Tactile Switch (Optional) Control the Relay 1 and Relay 2 Directly – Don’t Install for this project
  • SW3: Slider Switch for Direct Direction Control – Don’t Install for this project
  • SW4: Tactile Switch Arduino Digital Pin D11

Connections and Other Details

  • CN1: Pin 1 = 12V DC for MOSFET Gate Driver, Pin 2 = GND
  • CN2: Pin 1 = +Motor Power Supply 12V to 90V DC, Pin 2 = GND
  • CN3: Pin 1 = Motor, Pin 2 = Motor
  • CN4: Programming Connector Pin 1 = TX, Pin 2 = RX, Pin 3 = Reset, Pin 4 = GND, Pin 5 = VCC, Pin 6 = D11, Pin 7 = D12, Pin 8 = D13
  • D2, D4 LED = Motor Direction LED
  • SW1, SW2: Optional Direction Switch
  • SW3: Optional Direction Switch
  • SW4: Optional Switch Connected to Arduino D11
  • U4: RC Receiver or Analog In (Arduino Analog A1)
  • PR1: Potentiometer Connected to Arduino Analog A0

Schematic

Parts List

NOQNTYREFDESCMANUFACTURERSUPPLIERSUPPLIER'S PART NO
11CN12 PIN SCREW TERMINAL PITCH 5.08MMPHOENIXDIGIKEY277-1247-ND
21CN22 PIN BARRIER BLOCK PITCH 9.53MMTE CONNECTIVITYDIGIKEY
31CN32 PIN BARRIER BLOCK PITCH 9.53MMTE CONNECTIVITYDIGIKEY
41CN48 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5321-ND
51C1220uF/25VRUBYCONDIGIKEY1189-3720-3-ND
63C2,C4,C50.1uF/50V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
71C310uF/25V CERAMIC SMD SIZE 1206YAGEO/MURATADIGIKEY
84PR1,SW3,C6,C9DO NOT INSTALL
91C70.1uF/100VVISHAYDIGIKEYBFC2373FF104MD-ND
101C8470uF/100VNICHICONDIGIKEY493-1683-ND
112C10,C1122PF/50V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
122D1,D3SM4007SMC DIODEDIGIKEY1655-1N4007FLCT-ND
132D2,D4LED 3MM RED OR RED + GREENAMERICAN OCTODIGIKEY2460-L314HD-ND
142Q1,Q2MPSA13ON SEMIDIGIKEY2156-MPSA13RA-ND
151Q3FDH3632ON SEMIDIGIKEYFDH3632FS-ND
162RE1,RE212V RELAY/30ACIT RELAY AND SWITCHDIGIKEY2449-L115F11CM12VDCS.9-ND
172R1,R71K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
181R210K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
194R3,R8,R16,R17470E 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
204R4,R5,R9,R102K2 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
211R610E 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
221R111M 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
232R12,R14220E 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
241R132.2E 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
251R150E SMD SIZE 0805YAGEO/MURATADIGIKEY
263SW1,SW2,SW44 PIN TACCTILE SWITCHNKK SWITCHDIGIKEYHP0215AFKP2-ND
271U1LM78M05 DPAKON SEMIDIGIKEYMC78M15ABDTRKGOSCT-ND
282U2,U5PC817 4 PIN THTAMERICAN BRIGHTDIGIKEYBPC-817(BBIN)-ND
291U3ATMEGA328TQPF-32MICROCHIPDIGIKEYATMEGA328PB-AURCT-ND
301U43 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5316-ND
311U6TLP350/TLP250 8 PIN DIPTOSHIBA SEMIDIGIKEYTLP350H(F)-ND
321X116MhzECS INCDIGIKEYX1103-ND

Connections

Gerber View

Code

//This is modified code, orignal code from YouTube|Tech at Home

int in1 = 3;
int in2 = 4;
int enable1 = 5;  // pin with ~ symbol

int channel_2 = A1;  // pin with ~ symbol

void setup() 
{
  pinMode(channel_2, INPUT);
  pinMode(in1, OUTPUT);
  pinMode(in2, OUTPUT);
  pinMode(enable1, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  
  int pwm = 0;
  int value = pulseIn(channel_2, HIGH, 25000);
  
  if(value==0)
  {
      digitalWrite(in1, LOW);
      digitalWrite(in2, LOW);
      analogWrite(enable1, 0);
  }
  
  else if(value > 1530)
  {
      pwm = map(value, 1530, 1930, 0, 255); 
      digitalWrite(in1, LOW);
      digitalWrite(in2, HIGH);
      analogWrite(enable1, pwm);
  }
  
  else if(value < 1460)
  {
      pwm = map(value, 1460, 1090, 0, 255); 
      digitalWrite(in1, HIGH);
      digitalWrite(in2, LOW);
      analogWrite(enable1, pwm);
  }
  
  else
  {
      digitalWrite(in1, LOW);
      digitalWrite(in2, LOW);
      analogWrite(enable1, 0);
  }
  
  delay(10);
}

 

Photos

 

Video

TLP350 Datasheet

Signal Conditioning Module for Magnetic Rotary Encoder with Clock and Up/Down Direction Signal Output

This is a highly sensitive, temperature-stable magnetic sensing module ideal for use in ring magnet-based, speed, and direction systems located in harsh automotive and industrial environments. The module is a complete solution to make a magnet-based rotary encoder, which provides clock and up/down direction signal output. The circuit consists of A1230 and LS7184 chips. A1230 is an ultra-sensitive dual-channel quadrature hall-effect bipolar switch, and LS7184 is a quadrature clock converter. A magnetic rotary encoder consists of 2 main components, a Magnetic disc, and a signal conditioner. The disc is magnetized with a number of poles around its circumference.  The A1230 quadrature sensor detects the change in a magnetic field when the disc rotates and converts this information to two-channel rectangular pulses. Further, this quadrature signal is converted to a clock and up/down direction signal using the LS7184 chip. The resolution of the rotary encoder is determined by the number of magnetic poles around the disk and the output clock can be multiplied by factors of x1, x2, and x4 by changing the IC mode using jumper J1, thus this helps in increasing the output resolution.

Mode Selection Jumper J1

  • Mode is a 3-state input to select resolution x1, x2, and x4. The input quadrature clock rate is multiplied by factors of 1,2 and 4 in x1, x2, and x4 modes respectively, thus producing a high-resolution output.

RBIAS Resistor 6 (Range 2K Ohm to 10M Ohms) – Refer to Figure

  • The value of this resistor is responsible for the output clock pulse width. Alter the value to change the output pulse width. Please Refer to the datasheet for more info.

Features

  • Supply 5V DC
  • Clock, UP/DOWN Direction Output
  • 1 mm Hall element spacing
  • Clock Can be Multiplied by Factors of x1, x2, and x4
  • On Board Jumper for Clock Multiple Factor Setting for Higher Output Resolution
  • 2 x 2.5 mm Mounting Holes
  • PCB Dimensions 32.54 x 16.99 mm

Connections and Other Details

  • CN1: Pin 1 = VCC 5V DC, Pin 2 = GND, Pin 3 = Clock Output, Pin 4 = Up/Down Direction Output
  • Jumper J1: J1 Floating/Open = X4 , VCC = X2 , GND = X1 Factors Selection
  • D1: Power LED

How do magnetic encoders work?

The A1230 is a dual-channel, bipolar switch with two Hall-effect sensing elements, each providing a separate digital output for speed and direction signal processing capability. The Hall elements are photolithographically aligned to better than 1 μm. Maintaining accurate mechanical location between the two active Hall elements eliminates the major manufacturing hurdle encountered in fine-pitch detection applications. The A1230 is a highly sensitive, temperature-stable magnetic sensing device ideal for use in ring magnet-based, speed and direction systems located in harsh automotive and industrial environments. For more details please visit: https://www.motioncontroltips.com/faq-how-do-magnetic-encoders-work/

Schematic

Parts List

NO.QNTY.REF.DESCMANUFACTURERSUPPLIERSUPPLIER PART NO
11CN14 PIN MALE HEADER PITCH 2.54MMWURTH732-5317-ND
21C110uF/16V CERAMIC SMD SIZE 1210MURATA/YAGEO
31C20.1uF/50V CERAMIC SMD SIZE 0805MURATA/YAGEO
42C3,C410KPF/50V CERAMIC SMD SIZE 0805MURATA/YAGEO
51D1RED LED SMD SIZE 0805OSRAM475-1278-1-ND
61J1JUMPER- 2PIN MALE HEADER PITCH 2.54MMWURTH732-5315-ND
72R1,R4100E 5% SMD SIZE 0805MURATA/YAGEO
82R2,R310K 5% SMD SIZE 0805MURATA/YAGEO
91R51K 5% SMD SIZE 0805MURATA/YAGEO
101R68.2M 5% SMD SIZE 0805MURATA/YAGEO
111U1A1230LLTR-T SOIC8ALLEGRO620-1348-1-ND
121U2LS7184 SOIC8lsicsi.com
131J1SHUNT - JUMPERSULLINS CONNECTS9001-ND

Connections

A1230 Block Diagram

LS7184 Block Diagram

 

Magnetics Placement

.

Output Voltage

Gerber View

Photos

Video

A1230 Datasheet

3D Effect Audio Processor

The project presented here is a 3D sound processor, that regenerates 3D sound to stereo speakers. The board is able to regenerate 3D sound from a stereo audio input. It features of wide operating voltage range, wide dynamic range, and low output noise and is suitable for any audio application. This tiny module can add 3D sound effects to your next project. Basically, this mini low-cost module converts a stereo audio signal into 3D effect audio and it is based on PT2387 chip. The chip features a specially designed PTC HRTFs filter and with its space-enhanced circuit, it provides excellent audio quality and performance. The module provides excellent 3D effect audio output from a stereo audio source and a built-in LED display when the 3D sound effect is active. A tactile switch is provided to activate the 3D sound effect.

Features

  • Operating Voltage 5V to 9V DC
  • THD= N<0.01%, S/N>95dB
  • On Board Power LED
  • Standard Audio Signal Input and Output
  • On Board 3D function LED
  • 5MM Stereo Female socket for Audio Input and Output
  • On Board Tactile Switch for 3D Sound ON/OFF
  • PCB Dimensions 55.88 x 26.67 mm
  • 4 x 2.5 mm Mounting Holes

Connections and Other Details

  • CN1: Pin 1,2 = VCC 5V TO 9V, Pin 3.4 = GND
  • CN2: Stereo EP 3.5MM Female Connector, Stereo Audio Signal Input
  • CN3: Optional Audio input
  • CN4: Optional Audio output
  • CN5: Stereo EP 3.5MM Female Connector, Stereo Audio Signal Output
  • SW1: Tactile Switch 3D Sound Effect ON/OFF
  • D1: Power LED
  • D2: 3D Sound Function Display

Schematic

Parts List

NO.QNTY.REFDESC.MANUFACTURERSUPPLIER SUPPLIER PART'S NO
11CN14 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5317-ND
21CN23.5MM FEMALE STEREO EP SOCKETCUI AUDIODIGIKEYCP1-3525N-ND
32CN3,CN43 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5316-ND
41CN53.5MM FEMALE STEREO EP SOCKETCUI AUDIODIGIKEYCP1-3525N-ND
51C1100nF/50V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
61C2100uF/16-35V ELECTROLYTIC SMDUNITED CHEMIDIGIKEY565-EMHL250ARA101MF80GCT-ND
71C347uF/25V ELECTROLYTIC SMDPANASONICDIGIKEYPCE3804CT-ND
84C4,C5,C6,C710uF/35V ELECTROLYTIC SMD PANASONICDIGIKEYPCE3947CT-ND
91D1LED RED SMD SIZE 0805LIGHT ON INCDIGIKEY160-1427-1-ND
101D2LED GREEN SMD SIZE 0805DIALLIGHTDIGIKEY350-2044-1-ND
112R1,R21K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
121SW14 PIN TACTILE SWITCHNKK SWITCHDIGIKEYHP0215AFKP2-ND
131U1PT2387 SOIC8PRINCETON TECH CORPDIGIKEYALIEXPRESS

Connections

Gerber View

Photos

 

Video

PT2387 Datasheet

Ground Isolation Audio Amplifier for Automotive Applications

This Ground Isolation Amplifier is developed for car and automotive applications. The board efficiently eliminates problems caused by wiring resistance and removes noise generated by other electrical devices used in automobile environment. In a car or automotive the audio system is grounded to the car body. For this reason, electrical noise generated by the car electrical system can enter the power amplifier input through the chassis and become audible. The BA3123F utilizes the common-mode rejection characteristics of an OPAMP to eliminate this noise. 4 x RCA connectors are provided for easy audio interface. 2x pin header connector is provided for chassis ground.

Features

  • Power Supply 4V to 18V DC
  • Quiescent Current 9mA
  • High Common-mode Rejection Ratio(1Khz) 57dB
  • Low Noise
  • Low Distortion THD 0.002% (Vout 0.7V)
  • Frequency Response 20Hz to 20Khz
  • PCB Dimensions 58.58 x 41.28mm
  • 4 x 2.5mm Mounting Holes

Connections and Other Details

  • CN1: Pin 1,2 = VCC 4V to 18V, Pin 3,4=GND
  • CN2: Connect it to Car Chassis
  • CN3: Connect it to Car Chassis
  • J1: RCA Female Audio Output (Right Channel)
  • J2: RCA Female Audio Output (Left Channel)
  • J3: RCA Female Audio Input (Left Channel)
  • J4: RCA Female Audio Input (Right Channel)
  • D1: Power LED

Schematic

Parts List

NOQNTY.REF.DESC.MANUFACTURERSUPPLIERSUPPLIER'S PART NO
11CN14 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5317-ND
21CN22 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5315-ND
31CN32 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5315-ND
44C1,C4,C7,C84.7uF/35V SMD ELECTROLYTICPANASONICDIGIKEYPCE4296CT-ND
51C2100uF/25V SMD ELECTROLYTICUNITEC CHEMIDIGIKEY565-EMVE250ARA101MF80GCT-ND
61C3100nF/50V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
71C522uF/25V SMD ELECTROLYTICNICHICONDIGIKEY493-10060-1-ND
81C610uF/35V SMD ELECTROLYTICUNITEC CHEMIDIGIKEY565-EMVH350ARA100MF60GTR-ND
91D1LED RED SMD SIZE 0805OSRAMDIGIKEY475-1278-1-ND
104J1,J2,J3,J4RCA JACKCUI AUDIODIGIKEYCP-1418-ND
111R147E 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
121R21K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
131R3620E 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
143R4,R6,R80E SMD SIZE 0805YAGEO/MURATADIGIKEY
152R5,R71.8K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
161U1BA3123 SOIC8ROHMDIGIKEY846-BA3123F-E2TR-ND

Application Diagram

Connections

Gerber View

Photos

Video

BA3123F Datasheet

KiCad Conference 2023 (KiCon) to be held in A Coruña, Spain

The KiCad Conference will be held in person on September 9-10, 2023 at Palacio de Exposiciones y Congresos de A Coruña (Palexco).

KiCad is a free and open-source software suite for the design, simulation, and fabrication of electronic circuits.  It is available worldwide for use on Windows, MacOS, and Linux platforms.

Professionals from all over the world collaborate in the development of this landmark open-source program.  Its feature set compares favorably with solutions costing thousands of euros.

The Kicad Conference is the largest gathering of professional engineers, designers, and makers using KiCad worldwide.

The last face-to-face KiCon took place in Chicago in 2019. From 2020 to 2022 the conference was held online only, in deference to COVID safety measures. 2023, is the year to hold the conference in person again, and Europe was chosen to provide a convenient location for the 100.000+ European KiCad users.  A Coruña was selected as the host city from among other European cities.

The core KiCad developers will be present at KiCon to meet with KiCad users and discuss the future of KiCad.  Wayne Stambaugh, the KiCad project leader will give the keynote address.

Throughout these two days, many talks and training sessions will take place at all levels.  These are targeted at anyone interested in electronics, from the hobbyist to the advanced professional.  Examples of these talks are how to automate tasks, PCB design tricks, how to combine KiCad workflows with other technologies, and more…

For professionals, attending KiCon is a unique opportunity.  Here, you will be able to:

  • Learn from experts: improve your skills by learning from users and more advanced designers, who will talk about what we can expect in the next version of the program, and best practices in design.
  • Network: Meet other professionals to share ideas, talk about challenges, and make contacts that can benefit your company.
  • Keep updated with the latest KiCad trends: KiCad development moves quickly. You will learn about where KiCad is headed and how you can benefit from its future development

If you are interested in contributing or discussing your experiences designing with KiCad, we would love to hear from you!  There is still time to send your proposal! More information at https://kicon.kicad.org

Node Red with MQTT on Raspberry Pi

This tutorial will guide you to integrate the MQTT on Raspberry Pi via the Node-Red platform.

Node-RED is a flow-based development tool for the visual programming of hardware devices, and it is widely used for the Internet of Things. In addition,

Node-RED provides a web browser-based flow editor, which can be used to create JavaScript functions. So, in this tutorial, I’ll teach you how to integrate Qubitro with Raspberry Pi via Node-RED.

Components Required:

This project works without much additional hardware. The one and only requirement is you just need a Raspberry Pi.

Get PCBs for Your Projects Manufactured – (Sponsor)

You should check out PCBWAY for ordering PCBs online for cheap!

You get 10 good-quality PCBs manufactured and shipped to your doorstep for cheap. You will also get a discount on shipping on your first order. Upload your Gerber files onto PCBWAY to get them manufactured with good quality and quick turnaround time. PCBWay now could provide a complete product solution, from design to enclosure production. Check out their online Gerber viewer function. With reward points, you can get free stuff from their gift shop.

What is MQTT?

MQTT stands for Message Queuing Telemetry Transport. MQTT is a machine-to-machine connectivity protocol. It is useful for connections with remote locations where we want to send just a few bytes of data or our sensor values. It is a system where you can publish and receive messages as a client.

By using MQTT you can send commands to control outputs, read and publish data from sensors and much more. Therefore, by using MQTT you can establish communication between multiple devices. Using MQTT you can send a command to a client to control output, or you can read data

from a sensor and publish it to a client. There are two main terms in MQTT i.e. Client and Broker. Let’s discuss what client and broker are.

MQTT Client: An MQTT client is any device that runs an MQTT library and connects to an MQTT broker over a network. Both publishers and subscribers are MQTT clients. The publisher and subscriber refer to whether the client is publishing messages or subscribing to messages.

MQTT Broker: The broker receives all messages, filters the messages, determines who is subscribed to each message, and sends the message to these subscribed clients.

In the last Node Red series, we have seen how to install and use the Node-Red on Raspberry Pi. Just use that one to get started with the Node-Red

Now just start the Node-Red in Raspberry Pi by using this command.

node-red

Next, in your browser, go to the URL mentioned above. The Node-RED dashboard is now visible.

This is how the Node-RED Dashboard page appears.

First, we must install the MQTT Plugin for Node-RED. To do so, go to the menu option.

Choose “Manage Palette” from the drop-down menu.

Install MQTT Plugin by going to Palette and searching for it.

After successful installation, the MQTT In and MQTT Out menus appear in the network section.

Select MQTT Out and add it to the flow, then select Injection Palette and add it to the flow, making a connection between MQTT Out and Injection Palette.

The next stage is to connect the Node-Red to the cloud. For this, we have to use MQTT nodes. You can see those nodes in the node pallets.

We can use the MQTT out node to send our data to the cloud. Open the MQTT out node’s properties. We have to add our MQTT broker’s credentials.

And click on the edit new MQTT broker.

Now we have to add our server details.

Qubitro Cloud Setup

In this, we are going to use Qubitro as a cloud service to store and transfer data.

Login to Qubitro by creating a new account and opening the portal.

Next, create a new project with all your details.

Once you create the project, and add the data source point, you can see multiple data routes. In this, we are going to use MQTT so, select the MQTT as a data point.

Finally, you will see the credentials. We are going to use these credentials to connect the Node-Red with Qubitro.

Node-Red MQTT Setup

Use these configurations with the MQTT Out node.

Next, navigate to the security tab and enter the Device ID and token.

That’s all. Now we are all good. Again, go back to the MQTT Out node and there you can see the topic. Use the Qubitro Device-ID as mqtt topic here.

Finally, deploy the nodes. You can see the connected notification.

Cloud Visualization

Navigate to the Qubitro portal and look at the device page, it will show you the whole node-red data.

Also, Qubitro supports a good dashboard to visualize our data. Navigate to the Qubitro Dashboard and create a new dashboard.

Finally, if you want to share your data with the public means you can share via the public dashboard option in Qubitro.

Here is my sample demo dashboard.

Wrap-Up

So, now we know how to use raspberry pi and MQTT with Node-Red, in the upcoming tutorial we will build a complete automation system via Raspberry Pi and Node-Red.

TOP PCB Companies