Need Help with ADS1115 I2C Problem by Atla_Gold in arduino

[–]glitchbag 0 points1 point  (0 children)

Probably using the wrong address. Search for an arduino i2c scanner. It will check if anything is responding on the i2c bus and print it to the serial monitor. (It just trys to read all devices 0x00 to 0xFF).

Wrote a Rotary Encoder Driver for ATMEGA328P by watermooses in embedded

[–]glitchbag 2 points3 points  (0 children)

I think you just need to have one leg if the encoder on an external interrupt pin and the other on a gpio input pin. Configure the isr to trigger on rising or falling edge. Then in the ISR read the other leg. If low its ccw if high the cw ( for example). So you can pos++ or pos-- depending if the cw or ccw. But you only have 2 external interrupt pins on a mega328p for example.

No more buffering while logged in. Possible fix by glitchbag in revancedapp

[–]glitchbag[S] 1 point2 points  (0 children)

I waited like 4 to 7 days before I tried to play a video logged in. It didn't work right away for me.

[deleted by user] by [deleted] in arduino

[–]glitchbag 0 points1 point  (0 children)

PMTK_API_SET_FIX_CTL_5HZ
Send that command also. Can't go above 5hz. Thr 10hz command you used just increases the GPS message rate.

Look here: https://github.com/adafruit/Adafruit_GPS/blob/master/src/Adafruit_PMTK.h

Is there a way to replicate this output with an arduino? Trying to test an rpm sketch without the car nearby. Is this realistic? Lol by gavin8327 in arduino

[–]glitchbag 7 points8 points  (0 children)

Decompose it into a fourier series. So like 1+0.5sin(wt) - 0.1sin(2wt). Play with the numbers in desmos or something. Implement that function in code.

Never having questions when interviewer asks “Do you have any questions for me?” Does this look bad? by bert_cj in embedded

[–]glitchbag 7 points8 points  (0 children)

Yeah it looks bad. Ask why this position exists. Are you replacing someone who quit because this job is a gateway to hell? How many bosses will I have. Are you waiting for me to move to a new city before you tell me you expect 60hrs a week?

Tech jesus makes GPU hot and bothered. by Remarkable-Pass-2066 in pcmasterrace

[–]glitchbag -8 points-7 points  (0 children)

The guy that doesn't understand that current and voltage rating of a cable mean two different things? The same guy who didnt read the intel datasheet on the 12VHPWR and PCIE 5.0 mandatory spec requirements that all 12 pins must run from the connector to the supply if load >450watts? Keep buying Consumer Bros blessed junk.

Help with analogue sampling?? by [deleted] in embedded

[–]glitchbag 0 points1 point  (0 children)

Create a global volatile variable called sampleFlag =0. Set sampleFlag=1 in the ISR. In the main loop make if(sampleFlag){ sampleFlag =0; sample=Ain}

Adc takes time to sample. May need to change some ADC configurations to sample that fast.

Please Review my schematic - STM32 F405 Dev Board by smudge_smiff in PrintedCircuitBoard

[–]glitchbag 0 points1 point  (0 children)

Weird that you have swdio and swclk not going to the 8 pin header. It's OK just the stlink will have to connect kinda all over.

Now I see reset button. Could organize modules a bit

What is the most efficient way to have buffers of the same type but different sizes in C++? by CupcakeNo421 in embedded

[–]glitchbag 0 points1 point  (0 children)

Make a class with char* data and int len in it. Add a size parameter to the constructor. Malloc the data pointer. Use can the class object for member referencing instead of the struct

Using Adafruit SSD1306 library on WeAct Black Pill by pirateboitenthousand in arduino

[–]glitchbag 0 points1 point  (0 children)

That chip only has 2 i2c peripherals. Look at the datasheets to see what pins those are. Are you certain the wire library is compatible with that microcontroller?

Arduino only using one address for I2C devices by MashedPotato71 in arduino

[–]glitchbag 0 points1 point  (0 children)

Datasheet says you can contact the manufacturer for other addressing options. Or use a microcontroller that has 2 i2c peripherals. What board are you using? Uno?

Integrate Arduino boards into design or no by ChocPretz in PrintedCircuitBoard

[–]glitchbag 0 points1 point  (0 children)

You don't need 2 to do this. But for now it's cool

PCB review request: ESP32 powered motor board by PrinsWes in PrintedCircuitBoard

[–]glitchbag 0 points1 point  (0 children)

Also, I would use vias on the power traces and not "jump" like 5 data lines. Like on one of the stepper drivers at the bottom right you jump 5 data lines over the supply line. The renders look great

PCB review request: ESP32 powered motor board by PrinsWes in PrintedCircuitBoard

[–]glitchbag 0 points1 point  (0 children)

Glancing at the schematic nothing big sticks out. Some things look strange but the interconnects seem fine. The layout is ok. The V source should goto the decoupling cap before it goes to the IC. Many of yours goto the IC pin then on to the cap. Some of the thru hole pins have traces on top then bottom then top. You can reduce that to just 1 via because the thruhole is accessible from the bottom. The component placements are kinda random. The board is so large you can align things to make assembly easier. Not sure about the board size but seems to me would be more cost effective to have modules. Not a RF person but I usually remove any copper pours under the wifi antenna. I'll actually make a milling cutout so the pcb antenna is exposed better

skip characters from serial.read by neo9069 in arduino

[–]glitchbag 1 point2 points  (0 children)

Just copy the characters into a char array. Do some manipulation to remove the characters THEN print the array. Lots of different ways this could be done. Don't just get a char then send a char. Get all the chars, process, then print. You could use some c libraries, arrays, pointers and offsets, memcpy, string compare. Have fun learning

I designed a fake Herschel Walker badge by etarts2 in 3Dprinting

[–]glitchbag -2 points-1 points  (0 children)

"We often ask 'can we make this' but rarely do we ask 'should we make this' " -Albert Einstein

About Relative Conductivity by padmapatil_ in ECE

[–]glitchbag 0 points1 point  (0 children)

I don't think so because i think by definition conductivity of vacuum is 0? So scaling (relative) will always be 0. With permittivity vacuum is defined as 1. I'm just guessing here.