|
I have a very pure hardware question that only an electronics engineer would possibly be able to answer. And that is, how do I remove the infinitessimal dimples formed by lowering the "hammer" on a four-conductor zif ribbon using the tiny plastic squeeze wedge in the board-soldered receptor so-as to make the contact surface of each end of the thing flat again? I suspect, due to the nature of the moving fold, as a servo rotates, that these indentations have weathered to such an extent that my electrical signal is being lost. And I can't keep pulling the ends out and sticking them back in to get the motor swinging again ... because it's just not the solution.
I might possibly be able to obtain a new zif four-connector but if I had a solution to reduce the amount of gas required to motor north to the electronics store that would be better. A punch perhaps?
Any informed suggestions = very helpful.
Thanks!
|
|
|
|
|
Hi All,
Using an Arduino to drive a servo motor (well trying).
#include <Servo.h>
Servo myServo;
int servoPin = 2;
uint16_t i = 0;
void setup() {
myServo.attach(servoPin);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
HERE:
i = 0;
for(i = 1; i <= 180; i++)
{
myServo.write(i);
delay(15);
}
for(i = 180; i >= 1; i--)
{
myServo.write(i);
delay(15);
}
goto HERE;
}
Now what I believe Should happen is digital Pin 2 which is being used as the servo pin goes high and the due to the loop the pulse is 'stretched' from 1 to 180 which is taken by Servo and magiced it into a value and sent via pin 2, once this is done the value get counted down from 180 back to 1 by the second loop.
What happens is by scoping the pin the pulse is one get to 180 counts back and does not loop.
This started as a 'Hmmm' problem and has slowly been upgraded. I have put the loops in separate functions to see if that helps, no. Google has been a no and I can't log on to Arduino board as my Pass word was rejected ands the sent pass word link doesn't. Going fully bananas here.
Glenn
PANIC OVER THE CODE NOW WORKS!
|
|
|
|
|
What did you do to get it working ?
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Copied into two separate functions and swore... Basically rubber ducking it.
|
|
|
|
|
glennPattonWork3 wrote: ands the sent pass word link doesn't
You might want to spend some more time on that. Did you try manually copying and then inspecting (versus just clicking)? Sometimes something (either sender or email client) can end up adding stuff where it shouldn't to the url.
Or create a new account?
|
|
|
|
|
No the saved log in didn't work went back to manual list tried again same problem.
|
|
|
|
|
Why would you put the HERE label and goto statement in there when the Arduino constantly executes the loop function for you automatically?
|
|
|
|
|
That was part of the problem it was hitting the bottom of the second for loop and not looping (or seeming too),
Oh man I hate the fact the Arduino servo library means you have to bit bang to change the frequency.
|
|
|
|
|
It's not Arduino, but there are Arduino compatible, cheaper, more powerful boards made by a company called Espressif out of China.
They make good SoCs and used by many people, including me professionally.
I recommend the ESP32 based devices. You can get like an M5 Stack Core2 which is pretty neat, or like a Lilygo TTGO T-Display T1 (i have several), or my favorite - one of the Makerfabs ESP Display lines like the Parallel, the 4" or the 4.3"
You can also get them as raw devkits, but they don't use the arduino form factor (although a 3rd party makes arduino form factor ESP32 devkits I can't recommend them)
If you do go that route, reddit's /r/esp32 is a really good resource (when they get around to being finished with their reddit protest)
Check out my IoT graphics library here:
https://honeythecodewitch/gfx
|
|
|
|
|
While programming an Arduino device from my Linux desktop, I've found it quite helpful to fill my code with progress output to the serial port e.g.
Serial.println(" CONNECTED");
and then watch the progress from another window with tail -f
tail -f /dev/ttyX
where ttyX is the serial port of the Arduino device. (On USB it can change every time you plug it in.)
You need to run the tail command as root or have added yourself to the "dialout" group.
p.s. you don't need the "goto HERE"
|
|
|
|
|
Hi,
I know I don't need goto HERE that was left over from a previous hack to prove to myself it was looping (in the past I have used HELL as a label there's something oddly satisfying about type goto HELL!)
|
|
|
|
|
I am considering buying an MSECORE Mini PC i9-9880H.
It comes with lot of stuff (SSD, WiFi, Windows 11, etc)
Canadian price $910.
Any (well almost any) comments appreciated.
73
|
|
|
|
|
I need ports for at least 3 monitors. Digitial sound output. HDMI. USB ports. Firewire? Bluetooth. 16GB+. Windows Pro. (that I can think of)
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Gerry Schmitz wrote: I need ports for at least 3 monitors.
I certainly haven't tried but isn't that possible with USB (and a USB block of course)?
|
|
|
|
|
Perhaps. I just know what I have and use now (2 HDMI and 1 DisplayPort) on my motherboard. My keyboard does have extra USB ports but are so underpowered as to be useless.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Hi,
The company I work for is using 13.56MHz RFID for a project. This project involves reading a tag and playing an audio track. I got a third party reader and could read the Tag UID fine but miss the 'extra' data embedded in the read/write section of the tag. Issue is I did my 13.56 Tag training at Texas Instruments and there was no mention of R/W sections of the tag, only an encrypted data section (used at the time for GasN'Go in Canada) so what I'm wondering has the spec changed or have we go a product using a protected area of the tag?
Glenn
|
|
|
|
|
|
Thanks, I was thinking read back the UID, UID links to Audio track in the reader, plays audio track. I am not sure if this is the approach or not (I hope so). There does seem to be an issue with life of the batteries which indicates to me the RF Unit is being left on for too long. This then leads to why? I can power a reader than reads the UID from a low capacity power bank with no issues. From what I remember of the 13.56 training I did was there was a read only section that could only be read by a special reader which was developed and used on the Canadian GasN'Go system... Could we be possibly be using a 'protected' area of the card meaning some readers won't read all the data (other than the UID)... I will have read of the spec's you provide and hopefully have an answer..
|
|
|
|
|
glennPattonWork3 wrote: life of the batteries which indicates to me the RF Unit is being left on for too long.
Huh?
Obviously you did not provide the full specification. There are musical devices that use RFID for control but those should have a fixed supply.
I was thinking maybe they wanted a security beep for each valid RFID and something else if invalid (or other states). But again should be fixed supply.
Perhaps a portable service reader and the beep indicates that it was read, successful or not. But then plans must be made for recharging or changing batteries (presumably rechargeables.)
But really none of that has anything to do with the RFID but rather with the design and engineering of the system/product.
|
|
|
|
|
I am trying to prepare my guitar signal for as best as possible ADC response in order to detect harmonics to the 5th of the highest note of the guitar (1175 Hz for 22 frets), which is about 5875 Hz. This means that I need to be sampling at about 58.75 kHz, which is possible with the microcontroller and it's DSP functions.
I am using an STM32F407 Discovery board(https://www.chipsmall.com/Products/STM32F407G-DISC1_10343216.html).
So far, I have not come across any solutions that I am happy with.
Considerations that are important:
*Guitar output impedance: about 1M ohm.[br] *Anti-aliasing for the ADC[br] *Guitar signal of 500mV Vp-p max[br] *ADC input range 0-3.3V[br] *5V single supply[br] *Frequency range from 82Hz and 5875 Hz
Does anyone have any suggestions of a circuit that I can use? I have TL082, LM358 and LM741 opamps available, but I am open to other suggestions.
The goal of this element of the projects is to be able to use the first 5 harmonics and a sampled period of the guitar signal for further DSP.
This is what I have come up with so far - although I believe it's far from ideal.
Any tips would be greatly appreciated.
|
|
|
|
|
Earlier this week, I started having problems with the local electricity supplier. My UPS'es kept triggering alarms and it turned out to be the power company lines were delivering over 130V.
Called the electric company and they determined that a line voltage regulator had failed. They bypassed the regulator and got my supply voltage down to about 125+- but then it would drop under the 105 volt low limit and cause my UPS'es to go into battery backup mode for a few seconds.
So here's the fun part:
One of the Windows 10 systems would failed to boot after a shutdown from the UPS---giving me a 0xc000021a stop code.
Tried Windows startup recovery, replacing the C drive, restoring backups, etc.---all the standard crap. System would not boot.
Tried disconnecting all four external disk drives that were attached via a USB 7 port hub. Still failed.
Finally disconnected everything, including internal drives and USB hubs (two attached) --- SYSTEM BOOTED!
Went through an isolation procedure to determine what was causing the boot failure. Got it down to one of the USB hubs, which was not plugged into the UPS, had gotten smoked somehow. It still looked like it was working but it caused Windows 10 to fail during the boot process.
Who would've thunk a USB hub could cause a boot failure on Windows 10?
Microsoft owes me for four days labor and several bottles of antacids.
|
|
|
|
|
I always find these sort of failure stories interesting.
|
|
|
|
|
I just bought this HP laptop[^]. I want to connect dual monitors, so I bought one of these on Amazon[^].
I hooked it up, went into Display, Multiple Displays, and clicked Detect - and it doesn't detect it.
Do I need an HP docking station? ANy thoughts on what's wrong?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
Kevin Marois wrote: Do I need ... Why not ask HP, it's their product and they have help forums.
|
|
|
|
|
Just noting that on more than one occasion using even the same laptop (not HP) I have experienced this sort of thing.
Usually involves a lot of experimentation and googling to get it to work. Googling will show multiple suggestions/causes.
I also haven't tried it with USB only though.
|
|
|
|