Skip to main content

Questions tagged [code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Connection of FS1000A with CC1101 on the ESP8266 board

I have a problem receiving data from the transmitter. Packets are sent and the receiver registers them. But the data is empty. The transmitter and receiver are connected to ESP8266 + NodeMCU V3. Two ...
Jakub Gloc's user avatar
0 votes
1 answer
46 views

Iterative Simulation LTspice Model using Python

I'm new to python. I have a python code to simulate my LTspice model. I need to change the on time in the pulse parameters and I need a large number of simulations for at least 100 different Ton. So I ...
New_User's user avatar
0 votes
1 answer
53 views

Problem regarding the code that I made for my PIC16F627A microcontroller

i'm facing problem regarding the code that i made for my pic16f627a microcontroller. here are the details so that you may understand exactly what i'm trying to achieve. i have set porta as input and ...
SOCIALIST POET's user avatar
0 votes
1 answer
35 views

identifying component 12QF 65I COVQ

Can you please help identifying this component with top marking: 12QF 65I COVQ Device: an earlier 2020 revision of Xmos isolated I2S USB interface
cserl's user avatar
  • 13
0 votes
1 answer
34 views

Identify smd top marking ADLG

Can you please help to identify the 8 pin component with the top marking: ADLG? It was in an earlier 2020 hardware revision of this circuit: enter link description here
cserl's user avatar
  • 13
1 vote
1 answer
56 views

Is brazing and TIG welding wires acceptable connection according to code?

The other day I had my air conditioning repaired, and one thing I saw the technician do is braze the copper pipes together. This got me thinking why don't I see that done in electrical setting. I ...
DrakeJest's user avatar
  • 917
0 votes
2 answers
58 views

In STM32F4 Complementary PWM, Can we set %0 dutycycle both CH1 and CH1N

My question is about complementary PWM. Can we get %0 dutycycle at CH1 and CH1N at the same time. Datasheet of MCU: https://www.st.com/resource/en/reference_manual/rm0383-stm32f411xce-advanced-...
MSB's user avatar
  • 77
0 votes
0 answers
20 views

Interfacing ADC12138 with Digital Discovery using SPI

I am trying to interface ADC12138 ADC over SPI channel to Digital Discovery to read the single ended analog voltage in the rang of 0-4V on channel 2. As described in datasheet section 1.0 Snapshot ...
Ronnie's user avatar
  • 328
1 vote
2 answers
89 views

Number of iterations in nested loop (8051)

Let's say we have this program: MOV R5, #4 H2: MOV R6, #10 H1: DJNZ R6, H1 DJNZ R5, H2 After moving the data to the registers, microcontroller executes ...
Agus's user avatar
  • 11
4 votes
2 answers
177 views

Converting PMSM motor differential equation to difference equation/discrete-time implementation

I am researching about sensorless control of PMSM, and currently looking at how to implement the algorithm into code. From this link Module 9: Position Observer (Part 2/2). I encountered the equations ...
Dinh Thong's user avatar
0 votes
0 answers
135 views

Measure capacitance with Arduino and AD7746

I want to measure capacitance with an Arduino and an AD7746 capacitive sensor. I already used ChatGPT and some examples, but the sensor measures just 0 pF. When I measure with an LCR meter, the ...
KangHyuk Lee's user avatar
8 votes
4 answers
4k views

Is the Gray code unique?

After googling, I found that a Gray code is not unique and the only requirement for a sequence of binary strings to be a Gray code is that two adjacent binary strings differ by only one bit. Can we ...
mendax1234's user avatar
0 votes
2 answers
40 views

Debugging I2C Read

I'm running code from [Adafruit_BuxIO] (https://github.com/adafruit/Adafruit_BusIO) which defines the function `write_then_read' as ...
Seth Shill's user avatar
1 vote
0 answers
74 views

Is it possible to display DHT11 on a 4 digit-7-segment with a PIC16f877A?

I'm trying to display the temperature of the DHT11 on a 4-digit-7-segment. I simulated it on Proteus and the result always equal to 0. I wonder if the way I used timer to display the LED affected the ...
stevievei's user avatar
1 vote
1 answer
74 views

Wraping of counter in input capture

I am doing an input capture on STM32F401RE on TIM1 CH1, CH2, CH3, CH4. On each channel when a capture happens the ccr1, ccr2, ccr3 and ccr4 will store the value according to the CNT register at that ...
user avatar
-1 votes
1 answer
48 views

Confusing terminology? [closed]

I posted this question at motor vehicle stack exchange but I believe it's more suited for this. I've noticed that many computer errors (diagnostic trouble codes PXXXX) in cars use confusing ...
Aden's user avatar
  • 27
0 votes
1 answer
166 views

Homemade BLDC controller not functioning (IR2101)

I’m trying to make a controller with 3 H bridges (N-FET, IR2101 and a Arduino Mega). I’m sure that the problem is in my code but I don’t know how to fix it. I think that the problem is in the PWM.The ...
Gustavo Carluccio's user avatar
0 votes
1 answer
164 views

Error while uploading hex file in DSPIC33CK32MC102

I am using DSPIC33CK32MC102 SSOP package, I have code and its hex file ready. I made the connections for the controller those are as follows: Pullup resistor of 5.5 kΩ for MCLR pin and 100 Ω between ...
user346235's user avatar
8 votes
1 answer
803 views

What does a gold band in the third position on a resistor with 5th band being white mean?

Any idea how I am supposed to interpret this component? I would not have expected a gold in third position for a resistor with 5 colors. Edit: this other thread gives explanation as to how to ...
SkiNoU's user avatar
  • 83
0 votes
0 answers
67 views

Plotting the radiation pattern of a half-wave dipole antenna with a frequency of 144 MHz in MATLAB

I need to plot the radiation pattern of a half-wave dipole antenna with a frequency of 144 Mhz in MATLAB but I don't know the code, can someone please help me?
Azl's user avatar
  • 1
1 vote
0 answers
33 views

NEC Wire Size for Neutral Question

I'm sorry if this is not the right place to ask this question. In my shop, I have a solid state phase converter that is creating three phase power for some of my machinery. It's fed by two 150 amp ...
Confundity's user avatar
0 votes
1 answer
834 views

Difference between firmware, bootloader, and the code memory

I am new to microcontrollers and am facing a problem regarding the understanding of the terms firmware, bootloader and the actual code of a microcontroller. In some places I have read that the ...
user avatar
0 votes
2 answers
156 views

What do the letters mean on this LiPo (or Li Ion) battery?

I’m trying to find a replacement battery for my Bluetooth earphone as they drain out very fast. It is a 3.7 V 55 mAh. Looking through the options I see batteries with better capacity but the letters ...
Tokuo Sorato's user avatar
0 votes
2 answers
118 views

Why is this variable not updated during the loop?

I`m trying to obtain a PWM signal from RA4 a PWM signal when a button is pressed (button connected to RA2) using a PIC12F1572. I'm in trouble with code because run as follow: Start simulation via ...
SkePsis's user avatar
  • 67
1 vote
1 answer
99 views

Help to identify a SOT23-5/SOT26 component

I'm looking for some help to identify a SOT23-5 component that has the marking code D72 on it. The chip is located on a Canon camera mother board. There are 4 chips with the same marking code. One of ...
nataf10's user avatar
  • 59
0 votes
2 answers
411 views

How can I switch from PWM output on an STM32 to logic 1 output?

I am generating PWM on the TIM1C3 channel of an STM32 Bluepill board. A switch is connected to the system and when the switch is in the set position, I want the PWM production of TIM1C3 to stop and ...
KlorenGazen's user avatar
0 votes
1 answer
200 views

Troubleshooting a ZCD TRIAC circuit

Can someone see what's wrong here? My 50 W LED light doesn't shine. Here is my code from the Arduino IDE: ...
Mickolini's user avatar
0 votes
1 answer
246 views

Using transceiver between DALI and microcontroller

Does anyone have experience using a transceiver between a microcontroller and DALI bus? Please see the attached wiring diagram. I am not sure what is wrong with the circuit, but when I measure the ...
Mickolini's user avatar
7 votes
1 answer
384 views

Aiken code- any actual (recent) use?

A search for Aiken code (2-4-2-1 binary coded decimal) yields many web pages and a video with a lecturer claiming (in virtually identical language- this is from Wikipedia) (emphasis added): The code ...
Spehro Pefhany's user avatar
2 votes
1 answer
565 views

How do I read multiple ADC channels from a SAMD21 configured in atmel.start?

I'm stuck with trying to read multiple ADC channels on a SAMD21 that I have configured using ATMEL.start. I am very new to Microchip Studio (Arduino convert trying to upgrade). The below code is my ...
IlluminatedDan's user avatar
3 votes
1 answer
236 views

What IC is this? SMD marked AARY

What is this IC? Where can I find a datsheet for it?
khalid.h's user avatar
3 votes
1 answer
135 views

Please help identify a step-up DC-DC converter IC

Thank you for the opportunity to share this with the community. I'm in the process of repairing the PCB inside the SkyWatcher. So far I have identified the blown chip as a dc-DC boost converter ...
dasdboot's user avatar
-2 votes
1 answer
116 views

Electronic Chess Board [closed]

I want to make a chess board that can detect where all of the pieces are and send this information to a computer (Chess.com). I looked into it, and it seems that the best way to do this would be with ...
Set's user avatar
  • 1
1 vote
0 answers
189 views

Pulse generation using Timer counter in ATMEL SAM3x8e Arduino Due

I am using the ATMEL SAM3x8e chip on an Arduino Due. I want to generate two pulses of frequency 100 kHz of the pattern shown below (1 period shown). For this I used TIOA8 and TIOA0 lines in the ...
SM32's user avatar
  • 406
1 vote
1 answer
357 views

PIC16F628A input not working

I am using PIC16F628A, MPLAB IDE to coding and Pickit3 to write the code into MCU. The code works on Proteus but does not in real world. I setted A0 pin as input. It should count up normally and count ...
akiftokel's user avatar
1 vote
1 answer
2k views

SOT 23-6 SMD marking code

Can anyone help me with a SOT 23-6 manufacturer's marking code? I have searched, but no joy. It is from a laptop inverter board.
Smittykoi 's user avatar
0 votes
1 answer
70 views

Battery level indicator doesn't work, what did I do wrong?

I am building a battery level indicator. I am using a Arduino Uno and a voltage sensor. I am currently trying to write the code for this project, but I always get 103.5%, regardless of what the ...
user avatar
0 votes
1 answer
181 views

ATMega328p with SSD1306 and DHT22, help in code

Hi I am trying to make a project that uses DHT22 (Temperature & Humidity Sensor) and SSD1306 (OLED Display) with the ATMega328p. I want the OLED Display to be normally off and should turn on for 5 ...
dracarys's user avatar
  • 121
0 votes
1 answer
180 views

Identify SMD devices 32P, s67, sEF and E5L, H4K, 1 9RL [closed]

I have searched for weeks on the internet but it seems SMD devices have no fixed rules- anyone can name any chip any number/letter! No result searching this forum either. I am trying to identify a few ...
Chris's user avatar
  • 11
2 votes
1 answer
162 views

PI controller ringing once deadband hit

I am controlling a power supply with a home-brewed PCB. The power supply has some weird drift, so I implemented a PI controller in software to reel it in, but the output voltage rings once the dead ...
thunderbootyclap's user avatar
1 vote
1 answer
522 views

Verilog code execution in gate level modeling

The following is Verilog code an SR latch. ...
PG1995's user avatar
  • 245
0 votes
1 answer
146 views

Hamming code question

Suppose we have m data bits and n parity bits. In order for the Hamming code to function: $$m+n<2^n-1$$ If we have 3 parity bits we can have up to 4 data bits. But lets say we don't have 4 data ...
Jun Seo-He's user avatar
0 votes
1 answer
6k views

Code protection (firmware security) in PI PICO RP2040?

What are the available code protection (firmware security) options for off chip flash in PI PICO RP2040 for industrial IP critical designs?
mmfloom's user avatar
  • 11
2 votes
1 answer
686 views

How to convert the ADC/PDB part code of Teensy 3.2 for Teensy 4.0

I was working on two thumb ECG device on Teensy 3.2 but Teensy 3.2 was out of stock everywhere, so I was having only option to buy Teensy 4.0, now I was having code for Teensy 3.2, the below code is ...
Rohit gupta's user avatar
4 votes
1 answer
196 views

Noob questions about my accelerometer (ADXL345) and Arduino components in general

I've just bought this accelerometer: https://www.amazon.co.uk/XTVTX-ADXL345-Digital-Acceleration-Gravity/dp/B09NRFDH5J/ref=cm_cr_arp_d_pl_foot_top?ie=UTF8 I've bought it to learn about accelerometers ...
user avatar
2 votes
1 answer
2k views

ESP32 PWM duty cycle measurement from input

I am trying to measure the duty cycle interval (from falling to rising edge) in microseconds of an incoming PWM signal of 20 KHz. I made a test PWM signal on a GPIO pin (50% duty) and connected it to ...
Ralfs Volis's user avatar
0 votes
1 answer
106 views

How to monitor your code execution written for any electronic device while they are operating?

I am working on a mobile robot that includes motors, proximity sensors, encoders, and MCU. I am powering my MCU CC1350 Launchpad using the onboard power supply. The IDE I am using is Energia IDE, ...
user274774's user avatar
1 vote
0 answers
101 views

What is wrong with this PIC16F877A HCSR04 example?

I am working on distance sensor with PIC16F877A. I am using MPLAB IDE AND XC8 compiler. My goal is to gradually turn on the right leds at certain distance levels. but the leds are blinking unstable. ...
Electronx's user avatar
  • 756
2 votes
2 answers
2k views

Identifying unique color code of non-inductive wire wound resistors: Weird resistor color coding, never seen before

Here we identify the color code determining the values of non-inductive wire wound resistors, specifically Yageo's NKN series (but applicable to other manufacturers of this class), which are a unique ...
parkside's user avatar
  • 847
2 votes
1 answer
2k views

Trouble using the UART with Raspberry Pi Pico

I'm making a remote controlled machine using a Raspberry Pi Pico to drive the motors and read some sensors, and a Raspberry Pi 4 to send commands to the Pico via serial and host the web interface. I'm ...
lasb3tas's user avatar
  • 195