filament labs updates: setting up the jetson, getting the GUI running, testing and wiring [updates]
So today we need to do a few things:
First, we want to power on the jetson and see if we can even get the screen running and the system booting and connected to wifi and everything now that we've installed the antenna.
First though, I think we need to allow the desktop to load without HDMI before we get anything working.
https://www.jetsonhacks.com/2016/05/03/jetson-allow-graphics-without-hdmi/ I think the WiFi is taking too much power which means we need to add power for the display from that USB thing we initially installed to power the jetson. Okay and now.... the monitor booted when we used a smaller USB cable to power the thing. Hm. Who knows what's wrong with the long cable.
The first thing we're going to do is rotate the screen by 180deg because then we can actually see the system output properly on the Jetson's screen. OOP and now the HDMI signal is gone :( what is happening here. Let's unplug and replug in the jetson. Honestly no idea what's happening with the HDMI screen this thing is supposed to have a graphics card.
The problem is I can't even SSH in to fix that desktop on boot because I'm connected to the VPN at the moment and can't get off without tuning anything. It might be worth doing this whole thing through SSH and ROS later but still this is a little annoying. This thing makes me miss the raspberry pi, I never thought I'd say that. Maybe we really just want to take the WiFi out and use Ethernet...
We should check if the thing now connects to a DisplayPort system though it won't do us much good in the long-run we can at least fix the GUI boot on startup an install the things we need to install.
Okay so it boots when we connect the display-port cable to it now we literally just need to make it boot the desktop on startup no matter what. --> so the software to do this is already enabled... hmmmmmm I have no idea what is happening anymore with this thing. At the very least we can do the other things which is:
Installing Kivy and Kivy-garden.graph for the GUI for the system.
Installing python jetson GPIO control and such.
So I will say if Kivy doesn't install and things like that, we're just going to rip the Jetson off and use Arduino for now.
Andddddd the jetson shut off. Maybe we should just throw it out it's such a dumb device. I think we're going to use the Arduino for now because it's so so so so much easier. Maybe for the actual thing to avoid all the nonsense we will just do this: https://www.buydisplay.com/7-inch-arduino-touch-screen-shield-ssd1963-library-for-mega-due or something similar. For now we're just going to install the Arduino somewhere and program that with some command line interface just for the time being.
Okay so here's the install of the Arduino wiring into the system. The only things we need to wire are the thermistor and the single L298N motor controller. Then the arduino will also get power from the L298N!
Here are the IN1-IN4 going the L298N, and the power wires coming in and going out. We are using the L298N like a RELAY for now because we don't want to bother with anything fancy at the moment.
Here are the wires going into the Arduino itself. The 4 wires from the L298N, the 3 wires from the potentiometer. And the two power wires to the arduino itself (one common ground) the USB cable goes out the front.
We won't be able to dis-mount the Jetson Nano without breaking the WiFi antennas for now. We'll deal with that whole thing later. For now here's a picture of the full wiring for the system!
So now let's make a list of things we need to ADD and things that are on there that we need to take AWAY:
We need to add some sort of controls for the system like a small LCD/potentiometer kind of setup maybe. Maybe a potentiometer or maybe we would add a regular touch-screen LCD display (3.5-4in)
We can have a USB-python GUI interface on the computer that is nicer than what is on the system already.
We probably want to do all of this on PCBs...
Remove that Jetson Nano, the 7in touchscreen and etc.
Remove that 12v --> 5v 2A USB converter it isn't being use for anything.
Or instead of doing all of the above we get a SINGLE raspberry pi model 4 with Wifi already installed and do everything on there or something... but we can also stick with the Arduino for now (which is what I think we will do). And if we get a wifi chip for the arduino then guess what! We can use Blynk! https://blynk.io, see we can get a Mega Wifi: https://www.amazon.com/SongHe-Mega2560-ATmega2560-ESP8266-Compatible/dp/B07THDDFSJ for like a few dollars and then use an APP to control the device. We can even link an arduino and an old raspberry pi or something to achieve this inside the frame itself over USB! Or with Arduino WiFi and the Blynk app we wouldn't need to do EITHER (but that's harder for the end-user to setup). So we are going to see really what we want to do with this. For now we'll use arduino. I'm going to try to take off the Jetson without destroying it - the wifi antennas came off now for the touchscreen and the board itself. The screen came off easily. The Jetson is proving more difficult - of course it would it's the most annoying component ever.
Other Things to Get:
We need VHB tape to install the glass
And we need another door hinge to instal the front door
And we need some magnets
And we need some door seals again
We're going to do all of that later though, not right this second. We want the system to WORK before we do any of that. And for the Arduino we simply need something like this: https://www.amazon.com/Arduino-Resistive-Interface-Compatible-Leonardo/dp/B07B9XPQS4/ref=sr_1_2?dchild=1&keywords=4+in+arduino+screen&qid=1597244314&sr=8-2