So I've recently gotten hold of an ESP8266 chip with a microusb port.
I've been trying to program it with the arduino IDE but need to flash it.
So far I have tried this tutorial here but when I got to the stage of connecting in putty it would not connect giving me an error message, I tried running putty as root which was succesful however I could not type anything in the console.
I have also tried using the serial monitor in the arduino IDE which also only worked as root.
On this computer I'm currently using linux mint 18.1
Any help is greatly appreciated.
So I was able to flash the chip with pyflasher which you can get here.
To be able to communicate with the device without root I used this command to add myself to the group which can access serial devices.
usermod -a -G dialout MY_USER_NAME
Thanks
Related
I started this project with a Raspberry Pi, but realized that the Banana's hardware set is a much better fit for what I'm doing. Unfortunately, it appears that, even though LeMaker (the group behind the BPi) offers just about every OS imaginable pre-optimized for the Banana, only Bananian supports all the hardware that I need, and it doesn't come with a GUI of any kind.
So, given a Debian-derivative on an ARM chip that will never see a physical display and has root SSH functional by default, how can I make it boot to an auto-logged-in VNC server?
Here's what I've done so far, as root over SSH:
# bananian-config
# bananian-update
# apt-get update
# apt-get upgrade
# adduser pi
# passwd root
# apt-get install task-lxde-desktop
(the first two are announced in the SSH welcome message and are used to initially setup the generic image for this variation of the board)
Then I uncommented these lines in /etc/lightdm/lightdm.conf:
autologin-user=pi
autologin-user-timeout=0
[VNCServer]
enabled=true
command=Xvnc
port=5900
width=1024
height=768
depth=8
At this point, I rebooted and tried to connect with VNC, but the client gave the same error as when the server doesn't exist. SSH still works as root and now the "pi" user also, except that the "pi" user doesn't know sudo.
At this point, I'm lost. I don't know if there's a desktop waiting for me on the HDMI plug or not, or whether I need an explicit VNC server like x11vnc or tightvnc, or if there's something else wrong.
This is all I've done so far. I can re-flash the image if needed; I want to make this part work before adding anything project-specific.
Okay, I noticed in LeMaker's own instructions to make Wifi work that they included Android and Lubuntu too, and that someone on their forum had made VNC work on Lubuntu. I didn't see before that some other OS's would support the WiFi chip.
So I switched to Lubuntu, which already has a working desktop, installed x11vnc per its instructions, and it basically just worked.
Then I backed up the SD card and spent all of Saturday trying different ways to make it a WiFi access point, which usually resulted in kicking myself out and restoring the backup to try again. And finally that works too. So I backed up the card again and now I can work on the real functionality.
I recently received a LittleBits Arduino Coding Kit and thought the Arduino IDE would immediately recognize it.
I noticed that when I choose the "Arduino Leonardo" on the Tools -> Board as the instruction video said to do, the Tools -> Serial Port menu is grayed out.
I have already added myself to the "dialout" and "uucp" groups, ran the "arduino" program as root, ran a whole bunch of commands dealing with permissions, restarted the computer, plugged it into all the ports, reinstalled the drivers, and tried everything else I came across. For some reason, I can't figure out how to get this to work.
I use Xubuntu on an i686 architecture by the way, if that even matters.
I think you don't have permissions to read/write the serial port device. Even running Arduino application as root, it's running on a Java JVM, and calls other programs to compile sketches and burn the board... it's hard to figure out what's happening in the background. Also, is not a good idea to run programs as roout unless necessary.
Try this. First list your serial port devices.
ls -l /dev/tty*
There's should be one called /dev/ttyUSB0 or /dev/ttyACM0 or something like that (not /dev/ttySx). That one is your Arduino. Add read/write permissions for every user to that device file.
sudo chmod 666 /dev/ttyUSB0
Use the device you have. Now run the Arduino IDE, if the issue is with permissions, then it's done. Unfortunately, you'll have to do this every time you unplug the board or reboot the system.
Received my Jetson TK1 yesterday. After unboxing it and configuring the Linux GUI, rebooting the device with a mouse (cordless) attached to its USB 3.0 port takes it to some sort of Command line page where it probably loads some files and then the screen starts printing " [ . ] ". Nothing happens beyond that until I restart the board without any USB peripheral and then the device boots into the normal Linux GUI. Unable to figure out what's wrong with my board and why is it not working properly.(I am a newbie to LINUX)
P.S.: Connecting the monitor via HDMI after switching on the device gives no visual output, just a blank screen. Is it possible to connect the device via network adapter for remote access even it the screen is running blank?
The question is quite old, but as some people might get frustrated with it, I'll provide the answer for most probable cause.
Upgrading the board running 19.X release causes libglx.so to be corrupted. The issue have been actively discussed on NVIDIA forums and the best way to solve it is to upgrade to 21.X.
Otherwise, you can try recovering the libglx.so in the usr/lib/xorg/modules/extensions/ from Tegra124_Linux_R19.3.0_armhf.tbz2.
Could you possibly provide a bit more information about your situation.
Are you able to go to command mode by pressing 'CTRL+F1' or 'CTRL+ALT+F1'?
If that works, it means your Jetson operating system is working but only the GUI is not working properly.
Yes, You can use ssh to your Jetson (what I do) if only the GUI of Jetson is broken and your OS is working properly. Note that in order to do so you need to know ip address of your Jetson and perform some possible router configuration.
Note: Sometimes if you have a USB device connected to your system (jetson), the jetson might mistakenly assume the USB is storage type and therefore tries to boot up from the USB. This leads to failure since it can not load any OS of the USB. (I'm not sure if this is the case for you)
I would like to get started with programming on arduino, and am considering buying this kit https://www.sparkfun.com/products/11930 but I'm concerned about not being able to run this on linux.
I still don't know much about arduino, but could I still run this properly, and still be able to follow the programs without some obvious linux/windows differences?
Also, if anyone has any other reccomendations for some others kits to people new to arduino programming, but not new to programming, I would love to hear them.
The Arduino IDE itself runs fine under Linux (as well as Java programs can), and the compiler works perfectly (it uses GCC under the hood). If you're using a serial connection then it changes from COMxx to /dev/ttyNNNxx (e.g. /dev/ttyUSB0 [although I haven't actually seen it yet since I use a ISP programmer, but it should look something like that]). Also, no extra drivers needed. However, whether you're using a serial connection or a ISP programmer, you'll want to add a udev rule so that user access to the device is allowed.
You can install arduino on Ubuntu with the following command.
sudo apt-get update && sudo apt-get install arduino arduino-core
Is this something you are looking for ?
So I need to read some streaming data from /dev/ttyACM0 in Ubuntu.
However I'm a Windows guys so I'm looking for something like PuTTY so I can point, click and make my problem go away.
How do I get streaming data from a com port, or in this case /dev/ttyACM0 which is a USB cable working as CDC? I just want to confirm that the device is sending what I think it should be sending.
Apparently putty is available on Ubuntu https://apps.ubuntu.com/cat/applications/saucy/putty/ . So, if you installed that you may get the same user experience you are used to from Windows. Alternatively minicom is probably one of the most common alternative ( http://processors.wiki.ti.com/index.php/Setting_up_Minicom_in_Ubuntu ).