News:

The Latest electronic and computer Tips that work!

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - branx86

#41
Windows Fixes / Edit with 3d Paint
February 14, 2023, 03:45:21 PM
#42
Raspberry Pi / Retropi Setup
February 06, 2023, 11:54:09 PM
Put Roms in arcade folder
You can do a \\retropie\roms  from your computer or do \\retropi IP address\roms

sudo alsactl store  = saves alsa volume settings
alsamixer = brings up the mixer to change the volume
speaker-test -c2  --test=wav -W /usr/share/sounds/alsa -w Front_Center.wav  = plays test file to test the sound

In Sound Settings    Audio card = DEFAULT
                                Audio Device = HEADPHONE   ;if using Headphone jack on Pi if HDMI use HDMI
                                OMX PLAYER Audio Device = Both


Disable the emulator launch script if you keep hitting a button to configure the game rom mame version.
1st. Retropie Setup
2nd. Configuration/ Tools
3rd. Scroll to runcommand
4th. Disable Launch menu
5th. Then exit

#43
Cools up to 550 Sq. and it's very quite,  works great with 1k of solar and a 3K of battery.


</br>

#44
General Discussion / KFC Chicken
July 10, 2022, 11:26:59 PM
How To Make Crispy, Juicy Fried Chicken (That's Better than KFC)

Yield: Serves 4 to 6

Prep Time: 45 minutes

Cook Time: 45 minutes
Ingredients

    8 pieces bone-in chicken pieces (about 4 pounds total), preferably 4 drumsticks and 4 thighs
    2 tablespoons kosher salt, divided
    3 tablespoons smoked paprika
    2 tablespoons ground white pepper
    1 tablespoon garlic powder
    1 tablespoon ground ginger
    1 tablespoon celery salt
    1 tablespoon freshly ground black pepper
    1 tablespoon ground mustard
    2 teaspoons dried thyme
    2 teaspoons dried basil
    1 teaspoon dried oregano
    2 cups all-purpose flour
    2 tablespoons cornstarch
    1 cup buttermilk
    2 large egg whites
    2 tablespoons vodka or other neutral spirit
    2 quarts peanut or vegetable oil, for deep frying


#45
Change files to zip  : https://www.thingiverse.com/thing:2764274/files
Just put zip after file number and all files will download into one zip file.
Example:   https://www.thingiverse.com/thing:2764274/zip
#46
General Discussion / Sonoff R1 Dry switch
June 29, 2022, 03:38:27 PM
This is a pic of a Sonoff R1where to cut for a dry switch for, Garage door, Turn on off Invertor .....etc


This is what the top should look like
#48







From : https://www.engineersgarage.com/nodemcu-battery-voltage-monitor/

/*****************************************************
* Date: 18 june 2018
* Written by: Usman Ali Butt
* Property off: microcontroller-project.com
* ***************************************************/
#include <ESP8266WiFi.h>

const char* ssid = "Your SSID";
const char* password = "Your Wifi Password";

int BAT= A0;              //Analog channel A0 as used to measure battery voltage
float RatioFactor=5.714;  //Resistors Ration Factor
WiFiServer server(80);

void setup() {
  Serial.begin(9600);
  delay(10);
  Serial.print("Connecting to ");
  Serial.println(ssid);
  WiFi.begin(ssid, password);

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.println("WiFi connected");
  server.begin(); // Start the server
  Serial.println("Server started");
  // Print the IP address on serial monitor
  Serial.print("Use this URL to connect: ");
  Serial.print("http://");    //URL IP to be typed in mobile/desktop browser
  Serial.print(WiFi.localIP());
  Serial.println("/");
}

void loop() {
  int value = LOW;
  float Tvoltage=0.0;
  float Vvalue=0.0,Rvalue=0.0;
 
  // Check if a client has connected
  WiFiClient client = server.available();
  if (!client) {
    return;
  }
 
  // Wait until the client sends some data
  Serial.println("new client");
  while(!client.available()){
    delay(1);
  }

  // Read the first line of the request
  String request = client.readStringUntil('\r');
  Serial.println(request);
  client.flush();

  // Match the request
 
  if (request.indexOf("/bat=ON") != -1)  {
    /////////////////////////////////////Battery Voltage////////////////////////////////// 
  for(unsigned int i=0;i<10;i++){
  Vvalue=Vvalue+analogRead(BAT);         //Read analog Voltage
  delay(5);                              //ADC stable
  }
  Vvalue=(float)Vvalue/10.0;            //Find average of 10 values
  Rvalue=(float)(Vvalue/1024.0)*5;      //Convert Voltage in 5v factor
  Tvoltage=Rvalue*RatioFactor;          //Find original voltage by multiplying with factor
    /////////////////////////////////////Battery Voltage//////////////////////////////////
    value = HIGH;
  }

  // Return the response
  client.println("HTTP/1.1 200 OK");
  client.println("Content-Type: text/html");
  client.println(""); //  do not forget this one
  client.println("<!DOCTYPE HTML>");
  client.println("<html>");

  client.println("Battery Voltage =");
  client.print(Tvoltage);
  client.println("
");

  if(value == HIGH) {
    client.println("Updated");
  } else {
    client.print("Not Updated");
  }
  client.println("--------");
  if(Tvoltage<=5){
    client.println("Battery dead OR disconnected");
    }
  else if(Tvoltage>5 && Tvoltage<=10){
    client.println("Need Imediate recharge");
    }
  else if(Tvoltage>10 && Tvoltage<=12){
    client.println("Recharge");
    }
  else{
      client.println("Battery Full");
      }
     
  client.println("

");
  client.println("<a href=\"/bat=ON\"\"><button>Status</button></a>
"); 
  client.println("</html>");
  delay(1);
  Serial.println("Client disonnected");
  Serial.println("");

}
#49
Open MS Edge  click on three dots > settings > default browser> Under the option "internet explorer compatibility" set the option to >Never then try Oracle.
#50
Raspberry Pi / AutoStart Raspberry PI program
May 30, 2022, 03:36:07 PM
To make it auto start at boot Edit:  /etc/rc.local    Put the command  "   sudo python /home/pi/sample.py &    " or what ever starts your program.
#51
Raspberry Pi 3 B+ image. OpenCV Usb camera ,just unrar and image SD card and boot PI then login or SSH in and run "   python webstreaming.py --ip 127.0.0.1 --port 8000 "  Change the IP address to match yours and the port.  Then in a web browser point to the IP and port and enjoy. (Image login = pi  PWD=46765319)
#52
Arduino / Wemos D1_R1 Relay switch Blynk 2.0
May 22, 2022, 07:22:21 AM


//Brandon Relay controller on WeMos GPIO pin D9 on Blynk 2.0
// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID "TMPLPHrQlpSL" //Change to match yours in Blynk 2
#define BLYNK_DEVICE_NAME "RelayONOFF" //Chnage to match yours in Blynk 2

#define BLYNK_FIRMWARE_VERSION        "0.1.0"

#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG

#define APP_DEBUG

#include "BlynkEdgent.h"

BLYNK_WRITE(V0) //This is set in the Blynk app
{
  if(param.asInt ()==0) {  //Change 0 to 1 if you want to change button state
   digitalWrite(2, HIGH);  //WeMos GPIO D9
    }
  else{
    digitalWrite(2, LOW); //WeMos GPIO D9
  }
}
BLYNK_CONNECTED()
{
  Blynk.syncVirtual(V0); //This is set in the Blynk app
}
void setup()
{
  pinMode (2, OUTPUT); //WeMos GPIO D9
  Serial.begin(115200);
  delay(100);

  BlynkEdgent.begin();
}

void loop() {
  BlynkEdgent.run();
}
#53
General Discussion / Convert Mp4 to Mp3
May 03, 2022, 09:30:57 PM
Convert Mp4 to Mp3 on the send to menu windows. VLC needs to be installed
#54
Raspberry Pi / Python-pip install
May 01, 2022, 07:20:32 PM
sudo apt-get update

#Python 2
sudo apt-get install python-pip
#Python 3
sudo apt-get install python3-pip
#55
Windows Fixes / Clear Teams Cache1
May 01, 2022, 10:03:28 AM
Clear Teams cache if necessary.

For Windows:

1) Go to System (C:) > Users > Your name > AppData > Roaming > Microsoft > Teams. Please clear content in the following folders.

  %appdata%\Microsoft\teams\application cache\cache

  %appdata%\Microsoft\teams\blob_storage

  %appdata%\Microsoft\teams\Cache

  %appdata%\Microsoft\teams\databases

  %appdata%\Microsoft\teams\GPUcache

  %appdata%\Microsoft\teams\IndexedDB

  %appdata%\Microsoft\teams\Local Storage

  %appdata%\Microsoft\teams\tmp

2) Once completed, close Teams client and restart your computer.

#56
Windows Fixes / Check Wireless signal
May 01, 2022, 09:56:35 AM
netsh wlan show interfaces

to Get a report
netsh wlan show wlanreport
#57
Raspberry Pi / Quick Raspberry Pi webcam for Webpage
April 28, 2022, 09:56:40 PM
1st -  apt-get install python3-flask


In the /home/pi/Documents/camWebServer

To Install: Create directory "Documents" - "camWebServer" , "camWebServer" - "templates" , "camWebServer"- "static"
   in the camWebServer folder put "camera_pi.py" and "appCam.py"
   in the templates folder put "index.html"
   in the static folder put "style.css"

Now, run the python script on the Terminal:

sudo python3 appCam.py

To make it auto start at boot Edit:  /etc/rc.local  Put sudo python3 /home/pi/Documents/camWebServer/appCam.py &

Go to any browser in your network and enter with https://YOUR_Raspberry_IP (for example, 192.168.1.137)

NOTE: If you are not sure about your Raspberry Pi Ip address, run on your terminal:

ifconfig
#60
Raspberry Pi / Find out the PI version you have
April 25, 2022, 07:45:45 PM
Type the cmd below to find out what Pi version you have

cat /proc/cpuinfo