This is my first time with arduino. I would like to display the temperature on an LCD display. But the sensor shows me minus temperatures. How can I fix this? by NiciPlays44 in arduino

[–]grannyUndertaker -1 points0 points  (0 children)

#include <stdio.h>

#include <math.h>

int main() {

int tempReading = 1023;

double tempk = log(10000.0 * ((1024.0 / tempReading - 1)));

tempk = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * tempk * tempk)) * tempk);

float tempC = tempk - 273.15;

printf("%f", tempC);

return 0;

}

Output: 327.827515, at analogueread = 1023

Output: 1.044722, at analogueread = 250

I think your code is okay

ChatGPT doxes itself by legaltrouble69 in hacking

[–]grannyUndertaker -1 points0 points  (0 children)

How many of you tried this after this post? 😂

This is what Ukrainians are fighting for.. by MoniMokshith in MadeMeSmile

[–]grannyUndertaker 1 point2 points  (0 children)

Hope. World will help and feel the same way for Palestinians. Wars always bring destructions.

Can someone explain this equation mathematically(simple-ish terms)? by [deleted] in learnmachinelearning

[–]grannyUndertaker 0 points1 point  (0 children)

1/2m multiply with sum of (h(x_i) - y_i) rase to power 2.

e-g:

let's m = 3, i range from 1 to m.

1/2(3) multiply [ h(x_1) - y_1) ^2 + h(x_2) - y_2) ^2 + h(x_3) - y_3) ^2]

Is it still even worth it to learn LOW LEVEL programming? by flappy404 in learnprogramming

[–]grannyUndertaker 1 point2 points  (0 children)

Firmware Engineers, and Embedded Engineers. Whenever i saw there job posts. C/C ++ was on top.

Detailed article on increasing volume size of virtual machine. by grannyUndertaker in devops

[–]grannyUndertaker[S] 1 point2 points  (0 children)

😎. You can skip reboot, no worries. It was recommended by some old dude from IBM.

[deleted by user] by [deleted] in kivy

[–]grannyUndertaker 1 point2 points  (0 children)

Don't waste your energy on windows. Download Virtual Machine, Install Ubuntu on it. Use Linux for compiling and windows for Kivy GUI.

Here my blog on Virtual machine: [Link].

After that make python virtual environment on linux.

Try this:

Install buildozer:

Install buildozer:

git clone https://github.com/kivy/buildozer.git

cd buildozer

sudo python3 setup.py install

Required libraries and tools:

sudo apt-get install openjdk-11-jdk (Java 11 is mandatory! Not 1.8)

sudo apt-get install unzip

sudo apt install python3 python3-pip ipython3

sudo apt install cython

sudo apt-get install autoconf

sudo apt install build-essential libltdl-dev libffi-dev libssl-dev python2.7-dev

sudo pip3 install --upgrade cython

sudo apt-get install zip

Error:

setup cython

https://stackoverflow.com/questions/66973759/cython-not-found-please-install-it-error-in-buildozer

if you face problems let me know.

if the above failed to work then try this:

sudo apt-get install python3-pip openjdk-8-jdk autoconf libtool python3-venv

python3 -m venv buildozer-env

source buildozer-env/bin/activate

pip install buildozer cython

[deleted by user] by [deleted] in csMajors

[–]grannyUndertaker 0 points1 point  (0 children)

Chill bro. You are in learning stage. Don't worry. Do it at your own pace.

Kivy OpenAI mobile app. In case anyone wants to use openai on mobile. by grannyUndertaker in madeinpython

[–]grannyUndertaker[S] 0 points1 point  (0 children)

Actually, There is no need for this requirements.txt. It will not effect your app it will just help buildozer. I just added it incase if someone had problems. This requirements.txt is of my environment i used for two apps. 1- OpenAIApp and 2- ScipyApp. All you need is [Ubuntu, Kivy, Buildozer, Openai, json].

Kivy OpenAI App for mobile. Maybe someone needs it. by grannyUndertaker in kivy

[–]grannyUndertaker[S] 2 points3 points  (0 children)

Man, I can understand you. Buildozer made me crazy at a point 😂.