Intro
Yesterday we were trying to update the firmware of our 3D-printer a Tevo Tarantula i3 The printer was running Marlin 3D Printer Firmware.
We installed a new module a TL-Touch Sensor, a chinese copy of the Bl-Touch an auto bedleveling touch sensor for a 3D printer.
After re-configurating a new version of the firmware for our setup in the Arduino IDE we went on with uploading the sketch to the Arduino Mega that was controling our 3D printer.
The problems
Before we started uploading we made sure the right COM-port was selected in the Arduino IDE and that also the right type of Arduino was selected. The Arduino Mega 2260.
Then we started with compiling the firmware and then uploading it to the Mega, Somewhere in between that moment the IDE freezed and crashed. As a response we removed the USB cable that was connected from the PC uploading the firmware onto the Arduino Mega, (This was a stupid mistake)
After we restarted the IDE and tried again we recieved the following error during the upload.
avrdude stk500_getsync() timeout communicating with programmer
After some Googling we tried the following fixes:
Remove all the !!! in the source code, Because of this the Mega
can enter some kind of safe mode
Tried a test sketch, Same error
When uploading a sketch presing the reset button on the board.
Sometimes the PC could also not detect that the board was connected it
would not show up in the Device Manager. But when we re-connected the
USB it would pop-up in the Windows Device Manager,
We might think we corrupted the bootloader of the Arduino Mega because we unplugged the USB cable during flashing. Prehaps someone knows somehting else that might be wrong with our setup.
Equipment used
Lenovo Y50-70 running Windows 10 with the Arduino IDE
Arduino Mega 2260 that was provided with the 3D-printer
USB cable for connection between PC and Arduino
Firmware for the Printer
Configuration Guide for the BL Touch
Images
Related
Just started working with arduino and esp8266.
I configured the Arduino IDE adding: http://arduino.esp8266.com/stable/package_esp8266com_index.json to preferences.
Installed esp8266 by ESP8266 Community version 3.1.1 from board manager
Selected Generic ESP8266 Module board for doing some tests
But when i click on "Verify" this error pops up:
FileNotFoundError: [Errno 2] No such file or directory:'C:\Users\massi\AppData\local\Arduino15\preferences.txt'
exit status 1
Error compiling for board Generic ESP8266 Module.
I have no idea how to fix it
If anyone can help thanks
I tried reinstalling IDE and boards but still...
Fixed.
Unistalled then installed from arduino original website.
Problem was downloading the app from the microsoft store, sometimes those apps are buggi or can generate some problems in the file system.
Recently I installed VirtualBox 6.1 on my MacBook Air and installed Windows 10 on it (https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/), but somehow the sound on my guest Win10 is not working. I managed to dig for some info and found out that I need to install (https://www.realtek.com/en/component/zoo/category/pc-audio-codecs-ac-97-audio-codecs-software) but it does not work. Could anybody help me with this one?
EDIT: I get the error when I hover over the sound icon: "no audio output device is installed"
Fixing the sound on guest windows 10 where the host is Linux / Mac
Open the settings for your Windows 10 machine inside of virtualbox
Go to Audio > Host Audio Driver, change to "ALSA Audio Driver"
Go to Audio > Audio Controller, change to "ICH AC97"
Enable Test Mode on Windows 10 and reboot machine.
Download and install the Realtek driver for Vista/Win7 (32/64 bits) Driver only (ZIP file) from here and reboot your Windows 10 machine.
Disable test mode from the link in 4th step then reboot your Windows 10 machine.
In case you still have a crackling / popping sound
In the task bar, right click on the sound icon and choose playback devices
Double click on Speakers
Select the Advanced Tab
Set the Default Format to 16 bit, 44100 Hz (CD Quality)
In the Exclusive Mode, Uncheck the Allow applications... etc
Select the Enhancement Tab
Check the Disable all sound effects
Make sure you click apply then OK
The crackling sound would immediately disappear but you could reboot just to verify.
I tried the route in the most upvoted answer but couldn't get Win10 to install the AC97 driver. For me the solution was much simpler: select Audio Controller "Intel HD Audio" in the virtual machine settings (and leave Host Audio Driver to whatever the default was, in my case "Pulse Audio"). Enable Audio Output checked of course, and it should just work like the machine has a sound card.
Crackling is still there even with the stuff about turning off enhancements and exclusivity, but I think that's not going away since I'm trying to play 1080p video and I don't think the virtual machine has quite the kind of video hardware access (and memory allocation) that it needs to play this level of content perfectly smoothly.
Install Guest Additions if you haven't already. More info here for your specific case: https://www.virtualbox.org/manual/ch04.html#additions-windows
Host Linux Mint. Guest Win10. Had 'Guest Additions' installed, 'Host Audio Driver: Pulse Audio', 'Audio Controller: Intel HD Audio'. Sound in Win10-guest, but not in Commandos 2 or Patrician 3.
Installed Realtek drivers (https://realtek-download.com/wp-content/uploads/2014/07/6305_vista_win7_pg537.zip (thank you Wil)). Still no dice.
Win10 said: "No output devices found".
Changed Host Audio Driver to ALSA Audio Driver. And it worked! Thanks everybody.
With Fedora 36 host and Windows Server 22 Standard Desktop Evaluation as guest inside VirtualBox 6.1.34 it automagically worked after enabling sound at guest via:
Mouse Right Klick at (disabled) speakers symbol in Windows taskbar
Mouse Left Klick at "Sounds" (German)
-> See Screenshot
Accepting the prompt enabled sound with all default settings in VirtualBox VM Audio Settings:
Host Driver: ALSA Audio Driver
Controller: Intel HD Audio
VirtualBox 6.1.34 Oracle VM VirtualBox Extension Pack was also already installed here.
Sound tested successfully with Firefox 100 and https://fip.fr -> Rock
I bought a Variense VMU931 inertial measurement unit (IMU) for a robotics project at school, and I am struggling to get it to reliably communicate with my laptop in Ubuntu. I am using C++ with termios to connect to it using 8n1 no parity blah blah blah. I've tried EVERY permutation of settings I can think of, and I still cannot reliably send commands to the IMU.
I called Variense support and spoke to the engineer that wrote their software, and he said it is a known issue. Evidently it works perfectly in Windows (and the Windows demo software worked fine with my device), but neither of us is aware of a significant difference between the USB Serial emulation in Windows and in Linux.
The constructor at the top of this file shows how I am opening and configuring the port:
https://github.com/jsford/FFAST/blob/master/VMU931/src/vmu.cpp
Any help would be great. I've been tearing my hair out over this!
Thanks!
Use the cu utility for running tests with different parameters.
To debug the issue: run the USB packet capture with Wireshark on Linux directly and also on a Windows VM running in VirtualBox/VmWare. Compare the traffic.
Check which kernel module is chosen and loaded for that USB device. Use /sys/ filesystem for that: this virtual fs has information from kernel about what's used. Also, the lsmod-kind of commands show the kernel module usage. The driver choice for USB depends on something like <usb-manufacturer-id>:<usb-product-id>.
Put some printfs into the kernel module to see where is fails. Use the DKMS build system for rebuilding the kernel module. There is a config file somewhere in Linux to blacklist/whitelist the kernel modules - useful to make sure that the right one is loaded.
That's what I was doing to fix a driver of an USB-serial device.
I want to be doing C/C++ development with the ESP8266 using my favorite editor at the time (VS Code). Don't want to be using the Arduino IDE. I have the ESP Open SDK up and running and all, but find it rather annoying having to be flashing every time I want to deploy. Takes about 30 seconds getting both images across. This is a horrific feedback loop for me.
Before I head off writing my own Socket server that can take binaries and reflash while running or similar.. This must be a solved problem.. ??
PlatformIO, which bills itself as an "an open source ecosystem for IoT development" has integration with VS Code.
Instructions for VS Code are at: http://platformio.org/get-started/ide?install=vscode
You can use this instead of the Arduino IDE.
I am working on a project based on qt 4.8.5 and C++, the system is ubuntu 1404 and the motherboard in the pc was a DL631-c226 (information on DFI.COM ).
In the specification there is a DIO digital input output port 8 bits.
I read and I see every where on the web the simplest command is;
echo 1 > /sys/class/gpio/export
And after that a directory has been created but on my system it is not. Nothing happen even if I send the command using sudo root or root or admin
I get an error message "permission denied".
There is nothing in the BIOS regarding the DIO or GPIO configuration, in the kernel the GPIO is set to YES
I need help to read the value as changed on the pin of the DIO of my motherboard.
The interface to the DIO port is over i2c. Consulting their manual you can see an example of how to talk to it. I suggest you investigate i2c under Linux to understand how to handle it. At the very least you will need to install i2c tools and ensure your kernel has i2c support in it.
Their example: http://www.manualslib.com/manual/725217/Dfi-Dl631-C226.html?page=75#manual