Go to advanced search

by tech-mech
Mon Jan 17, 2022 8:36 am
Forum: Automation, sensing and robotics
Topic: Skid Steer Robot drive steer mixing
Replies: 0
Views: 51

Skid Steer Robot drive steer mixing

I have a functioning skid steer robot controlled with a web page that includes video. At this time I have 5 buttons for drive and direction with a slider for forward speed. Reverse speed is fixed and steer drives the outer wheel a fixed amount over drive speed forward. I am thinking about adding a s...
by tech-mech
Thu Jan 13, 2022 11:44 pm
Forum: Python
Topic: Change a value in a class.
Replies: 13
Views: 367

Re: Change a value in a class.

I do not have enough years of life let to figure out how to do this in Flask and get the video to work also. With sockets I have it working so why change? It will end up in a closed system. I find Python is not a friendly language. I had better luck back in the late '70 with Z80, 6502, 6803, and 680...
by tech-mech
Thu Jan 13, 2022 9:16 pm
Forum: Automation, sensing and robotics
Topic: Controlling a RPi based robot car via FLASK
Replies: 3
Views: 157

Re: Controlling a RPi based robot car via PHP

I have wanted for years to have a remote controlled robot with a camera. I sorta got that with a ESP32 project but i could not get a video stream on the control page and a data page. I tried flask but gave up as it tripped me up too much. Next I tried a simple socket server but put it on hold as I u...
by tech-mech
Thu Jan 13, 2022 9:00 pm
Forum: Python
Topic: Change a value in a class.
Replies: 13
Views: 367

Re: Change a value in a class.

Scotty101 Flask caused nothing but problems and would not help in this situation of changing a value inside a class. The larger program uses 3 threads. One thread does video streaming using http server, another thread that replaced this segment uses a socket ant the other thread uses a socket at thi...
by tech-mech
Thu Jan 13, 2022 3:58 pm
Forum: Python
Topic: Change a value in a class.
Replies: 13
Views: 367

Re: Change a value in a class.

I am a mechanic not a programmer so have no idea what pep8 is. I use spaces in Mousepad when editing and used the convert function to make them tabs so that could have caused problems, sorry. Wen I had Motor and spd outside the class I got error messages. Because of the motor driver I2C use the full...
by tech-mech
Thu Jan 13, 2022 2:20 am
Forum: Python
Topic: Change a value in a class.
Replies: 13
Views: 367

Re: Change a value in a class.

It does get bumped up by the increment value but gets reset before it gets used. I have not been very happy with the http server module as it does too much parsing, which is great for others but not me. I just tested a combination of simple sockets for data and control with http for the video. I als...
by tech-mech
Wed Jan 12, 2022 10:34 pm
Forum: Python
Topic: Change a value in a class.
Replies: 13
Views: 367

Change a value in a class.

I am trying to change the speed of a robot using a web page. The page is sending a good signal to the server but I don't know how to update a variable in the class that serves the web page. Here is a code fragment, the complete code (I think) is in another thread) class web_server(BaseHTTPRequestHan...
by tech-mech
Wed Jan 12, 2022 2:37 pm
Forum: Automation, sensing and robotics
Topic: Controlling a RPi based robot car via FLASK
Replies: 3
Views: 157

Re: Controlling a RPi based robot car via PHP

I used html and 3 server threads to get video, control, and a separate data page. It uses buttons for control. The video code is from Picamera advanced Recipes, the html control is from a Random Nerd ESP32 Cam Bot project and the server code is based on examples. This will work in a LAN and should w...
by tech-mech
Tue Jan 11, 2022 5:14 pm
Forum: General discussion
Topic: Raspberry Pi Zero W as a wireless microphone
Replies: 3
Views: 221

Re: Raspberry Pi Zero W as a wireless microphone

if you are going to involve Bluetooth why have the Zero at all? As for the ESP32 the Waveshare ESP32 One is in the Zero form factor and has a builtin I2S microphone. The ESP32 runs FreeRTOS but tries to act like other Arduino boards. It does Bluetooth, WiFi and Mesh network, and can do Mesh and WiFi...
by tech-mech
Tue Jan 11, 2022 2:40 am
Forum: Automation, sensing and robotics
Topic: RPI and Arduino robust serial
Replies: 1
Views: 153

Re: RPI and Arduino robust serial

I would be interested in your video code as I just got working a setup that uses 3 threads to get control, video, and data on 2 web pages. I am working with a 4B2 with a Waveshare motor hat. I posted questions about it in the Python section Server different page on each socket . The Waveshare board ...
by tech-mech
Tue Jan 11, 2022 2:27 am
Forum: Automation, sensing and robotics
Topic: Question on how to build a Raspberry Pi Car
Replies: 6
Views: 269

Re: Question on how to build a Raspberry Pi Car

I have seen adds for those wheels but I have concerns about traction. I am an FAA A&P with mechanical design training, my programming is not so good and UI skills are worse. But I just made work using lots of examples, a web controlled camera streaming robot control with expansion for a data pag...
by tech-mech
Mon Jan 10, 2022 8:07 pm
Forum: Python
Topic: Server different page on each socket
Replies: 8
Views: 303

[Working Cam Bot] Re: Server different page on each socket

Thank you memjr for showng an interest to help me. The Miguel Grinberg blog is where the Instructable post went to for code. But Flask just isn't working for me for this project. I tried a simple socket server which I still use to figure out what the html code is doing but what I have working is a 3...
by tech-mech
Tue Jan 04, 2022 6:12 pm
Forum: Python
Topic: Server different page on each socket
Replies: 8
Views: 303

Re: Server different page on each socket

This is the Flask video server. ''' #!/usr/bin/env python # -*- coding: utf-8 -*- Cam_Server.py based on tutorial ==> https://blog.miguelgrinberg.com/post/video-streaming-with-flask PiCam Local Web Server with Flask MJRoBot.org 19Jan18 ''' from flask import Flask, render_template, Response from came...
by tech-mech
Tue Jan 04, 2022 5:59 pm
Forum: Python
Topic: Server different page on each socket
Replies: 8
Views: 303

Re: Server different page on each socket

Sorry to confuse you. I run either Flask or Sockets, not both. The socket is what I am working on now. This is the Flask code that works but needs a camera feed that will not block controls. ''' Flask Web Server to control GPIOs with HTML Adapted excerpt from Getting Started with Raspberry Pi by Mat...
by tech-mech
Mon Jan 03, 2022 11:43 pm
Forum: Python
Topic: Server different page on each socket
Replies: 8
Views: 303

Re: Server different page on each socket

I started with Flask but switched to sockets. This is the code I am working with. I am using a 4B2 with a Waveshare motor driver hat. I did a lot of rework on their code but I modify one thing, try to make sue it works and try the next thing. I want to modify this to stream video and add a sensor pa...
by tech-mech
Mon Jan 03, 2022 7:49 pm
Forum: Python
Topic: Server different page on each socket
Replies: 8
Views: 303

Server different page on each socket

I am working on a robot program using mostly example code. I am a mechanic not a programmer but I have been trying to program since time shared basic. So where I am at and where I want to go. Using example code and repurposed html I have a socket server working to control speed and direction. I want...
by tech-mech
Thu Apr 15, 2021 6:54 am
Forum: Other RP2040 boards
Topic: M.2 socket based RP2040?
Replies: 8
Views: 2291

Re: M.2 socket based RP2040?

SparkFun has several carrier boards not just the 'All the pins'. I have never seen that the ATP board was said to be Arduino shield compatible. They have one dedicated to data logging and 2 the just hold the processor board and a Qwiic 1x1 board. All the carrier boards that I have have a Qwiic conne...
by tech-mech
Wed Apr 14, 2021 6:17 pm
Forum: Other RP2040 boards
Topic: M.2 socket based RP2040?
Replies: 8
Views: 2291

Re: M.2 socket based RP2040?

SparkFun (Colorado USA) has a line of products they call MicroMod. Several different processor boards and several carrier boards. It works with their Qwiic (3v3 I2C) system. Adafruit uses the same connector and pin out as Qwiic but calls it something else. I have Esp32 and SAMD51 MicroMod boards wit...
by tech-mech
Thu Apr 30, 2020 6:27 am
Forum: General discussion
Topic: PSU Solutions
Replies: 6
Views: 597

Re: PSU Solutions

I have done a couple informational protest using Raspberry Pi 2s driving TVs. A 13.3, 15 and 24 inch. The 13.3 has a car cord but the other 2 I powered with a 60w inverter. The power to the Pis was by the USB update port on the back of the TVs. The battery is a starting battery for lawn and garden t...
by tech-mech
Tue Apr 14, 2020 9:09 pm
Forum: General discussion
Topic: Structured data
Replies: 10
Views: 735

Re: Structured data

RPi Arduino serial com is not hard. Use pigpio / pigpiod. You can communicate with either the gpio pins or the USB connection (or both) and you can communicate from the RPi to multiple Arduinos. Just use a remote RPi for each. Note that what you get back from the Arduino is a byte array. I can provi...
by tech-mech
Fri Mar 20, 2020 5:26 am
Forum: Beginners
Topic: How to debug between two RPI's
Replies: 6
Views: 658

Re: How to debug between two RPI's

To move files from RPi to Rpi look into Filezilla. I think you would need ssh enabled for it to work. With both machines on the same LAN it gives you directories similar to the command line for each and you just drag and drop machine to machine.

Dale
by tech-mech
Sat Jan 11, 2020 5:36 am
Forum: General discussion
Topic: Need advice - GUI distance display
Replies: 0
Views: 284

Need advice - GUI distance display

For robotics I want to do a display that can show distance to several objects, sorta like a radar display. I really want to be able to change under program control from 180 deg full screen to a narrow display with other sensor data also displayed. I am using Python. My input data will be an angle an...
by tech-mech
Thu Jan 09, 2020 10:40 pm
Forum: Beginners
Topic: Problem in sending Raspberry pi to Arduino via UART
Replies: 4
Views: 459

Re: Problem in sending Raspberry pi to Arduino via UART

I used pigpio to send / receive strings as a test with a SAMD21 board. This used a remote RPi and the board (not the USB) SAMD21 serial. On the RPi side pigpio returned a byte count and a byte array. The Arduino sends ASCII and Python is unicode so you need to convert as Python needs to know what it...
by tech-mech
Fri Apr 12, 2019 10:48 pm
Forum: General discussion
Topic: Pi Portable
Replies: 0
Views: 264

Pi Portable

I live near a couple parks here in Portland Oregon so as I want to do some out door robotics I wanted a portable Pi. So I bought a small (13.3 inch) TV with a car cord. It says not to plug anything into the USB update port but I did it any way. So using a small (5.25X7.35X7.5 inch) starting battery ...
by tech-mech
Fri Feb 01, 2019 4:05 pm
Forum: General discussion
Topic: LCD
Replies: 2
Views: 520

Re: LCD

I use an official 7 inch display in a SmartiPi case powered by a large USB recharge battery and a pocket size wireless keyboard. Plug an play. I think of it as my pocket Pi.

Dale

Go to advanced search