ChatGPT

  • Viestiketjun aloittaja Viestiketjun aloittaja Jammu
  • Aloituspäivämäärä Aloituspäivämäärä

Jammu

Kansainvälinen sadonkorjaaja
Tekokuvaälystä on, mutta onko chatGPT kokemuksista täällä...

Tänäänhän radiouutisissakin näkivät vaivaa että kuinkamoni humanisti esseevastauksensa opinnoissaan tekoälyllä teettää...

Kyllähän tuolla tietoa löytyy..
 
Tykkään. Saa hyviä vastauksia ainakin noihin tietoteknisiin kysymyksiin.

Just kokeeksi kysyin: Show me sample code to read ds18b20 with wemos d1.

Koodi:
#include <OneWire.h>
#include <DallasTemperature.h>

// Data wire is connected to D4 on the WeMos D1
#define ONE_WIRE_BUS D4

// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);

// Pass our oneWire reference to Dallas Temperature sensor 
DallasTemperature sensors(&oneWire);

void setup() {
  // Start the serial communication
  Serial.begin(9600);
  sensors.begin();
}

void loop() {
  // Request temperature readings from all sensors
  sensors.requestTemperatures();

  // Print the temperature
  Serial.print("Temperature: ");
  Serial.println(sensors.getTempCByIndex(0));

  delay(1000);
}
Ja mun mielestä parasta on nämä selitykset:

In this code, the OneWire and DallasTemperature libraries are used to communicate with the DS18B20 sensor. The ONE_WIRE_BUS constant is defined as D4, which is the pin on the WeMos D1 board that the sensor's data wire is connected to. In the setup() function, the sensors.begin() method is called to initialize the Dallas Temperature sensor. In the loop() function, the sensors.requestTemperatures() method is used to request temperature readings from all connected sensors, and then the temperature is printed to the serial monitor using the Serial.println(sensors.getTempCByIndex(0)) method.

Make sure to install the OneWire and DallasTemperature library from the Arduino IDE library manager before uploading the code.

Enkä muistanut miten koodi upotetaan tänne, niin kysyin sitä samalla.... How to insert code with Xenforo bb-codes?

:D
 
Tykkään. Saa hyviä vastauksia ainakin noihin tietoteknisiin kysymyksiin.

Just kokeeksi kysyin: Show me sample code to read ds18b20 with wemos d1.

Koodi:
#include <OneWire.h>
#include <DallasTemperature.h>

// Data wire is connected to D4 on the WeMos D1
#define ONE_WIRE_BUS D4

// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);

// Pass our oneWire reference to Dallas Temperature sensor
DallasTemperature sensors(&oneWire);

void setup() {
  // Start the serial communication
  Serial.begin(9600);
  sensors.begin();
}

void loop() {
  // Request temperature readings from all sensors
  sensors.requestTemperatures();

  // Print the temperature
  Serial.print("Temperature: ");
  Serial.println(sensors.getTempCByIndex(0));

  delay(1000);
}
Ja mun mielestä parasta on nämä selitykset:

In this code, the OneWire and DallasTemperature libraries are used to communicate with the DS18B20 sensor. The ONE_WIRE_BUS constant is defined as D4, which is the pin on the WeMos D1 board that the sensor's data wire is connected to. In the setup() function, the sensors.begin() method is called to initialize the Dallas Temperature sensor. In the loop() function, the sensors.requestTemperatures() method is used to request temperature readings from all connected sensors, and then the temperature is printed to the serial monitor using the Serial.println(sensors.getTempCByIndex(0)) method.

Make sure to install the OneWire and DallasTemperature library from the Arduino IDE library manager before uploading the code.

Enkä muistanut miten koodi upotetaan tänne, niin kysyin sitä samalla.... How to insert code with Xenforo bb-codes?

:D

joo, työkaveri koodaututti tekoälyllä myös jotakin.

viime viikolla testattiin palkkaduunipaikkaan liittyvästä nippelitiedosta kahveetauolla, siinä tuli kyllä asiavirhe. Ilmeisesti ei ollut historiallista ja muuta faktatietoa vaan tekoäly päätteli asiayhteydestä.

Täytyy testailla enempi. Tuo oppiminen tapahtuu visdiin sessiokohtaisesti eikä varsinainen lähdeaineisto vaikutu kun kommentoidaan joku seikka epätodeksi
 
Tykkään. Saa hyviä vastauksia ainakin noihin tietoteknisiin kysymyksiin.

Just kokeeksi kysyin: Show me sample code to read ds18b20 with wemos d1.

Koodi:
#include <OneWire.h>
#include <DallasTemperature.h>

// Data wire is connected to D4 on the WeMos D1
#define ONE_WIRE_BUS D4

// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);

// Pass our oneWire reference to Dallas Temperature sensor
DallasTemperature sensors(&oneWire);

void setup() {
  // Start the serial communication
  Serial.begin(9600);
  sensors.begin();
}

void loop() {
  // Request temperature readings from all sensors
  sensors.requestTemperatures();

  // Print the temperature
  Serial.print("Temperature: ");
  Serial.println(sensors.getTempCByIndex(0));

  delay(1000);
}
Ja mun mielestä parasta on nämä selitykset:

In this code, the OneWire and DallasTemperature libraries are used to communicate with the DS18B20 sensor. The ONE_WIRE_BUS constant is defined as D4, which is the pin on the WeMos D1 board that the sensor's data wire is connected to. In the setup() function, the sensors.begin() method is called to initialize the Dallas Temperature sensor. In the loop() function, the sensors.requestTemperatures() method is used to request temperature readings from all connected sensors, and then the temperature is printed to the serial monitor using the Serial.println(sensors.getTempCByIndex(0)) method.

Make sure to install the OneWire and DallasTemperature library from the Arduino IDE library manager before uploading the code.

Enkä muistanut miten koodi upotetaan tänne, niin kysyin sitä samalla.... How to insert code with Xenforo bb-codes?

:D

Ei tehty äly nähny tarpeelliseksi terottaa, että kytkentään tarvitaan yksi 4.7K vastus datakarvan ja plussan väliin, jos nyt yhtään muistan miten se ei toiminu :oops:
 
Ei tehty äly nähny tarpeelliseksi terottaa, että kytkentään tarvitaan yksi 4.7K vastus datakarvan ja plussan väliin, jos nyt yhtään muistan miten se ei toiminu :oops:
Kysyin mallia esimerkkikytkennästä:
The DS18B20 has three pins: Vcc, Gnd and Data. Connect Vcc pin to 3V3 pin on the WeMos D1, Gnd pin to Gnd pin on the WeMos D1, and Data pin to D4 pin on the WeMos D1.

You can also add a 4.7K resistor between Vcc and Data pin, it's called a "pull-up resistor", it is used to ensure that the data line stays high when there is no communication.

Se tossa on kätevä, että edellistä keskustelua voi jatkaa ja systeemi osaa muotoilla vastauksia aikaisemmin kysyttyjen asioiden perusteella.

Kyllä tuo pian menee maksulliseksi.
 
Onhan tuota tullu nyt pari viikkoa testailtua vähä kaikkeen. Helpommin tuosta saa vastauksen ku googlella ettimällä. Avainsana tuon kans on että kysymykset kannattaa pohjustaa sille hyvin. Mitä monipuolisemmin jaksat pohjustaa kysymystäsi, ni sitä tarkemman ja paremman vastauksen saat.

Välillä se kyllä sekoilee kans urakalla. Joskus lopettaa selostuksensa kesken kaiken, mut jatkaa ku sanoo että "continue from last line + hipsujen sisään se viimeinen kokonainen rivi"
 
No hemputti, onkohan lähde validi inspehtoorille :D

The distance between the Suzuki SJ413 (1986, short wheelbase model) axle and chassis with stock suspension is around 7 inches. This measurement is taken from the center of the axle to the bottom of the frame rail.

Mielestäni ollaan ihan sektorilla, tuosta kun miinustelee akseliputken säteen ja pohjaanlyöntikumin, niin ei siihen juuri mitään jää vakiona.

Googlen vikahan nykypäivälle on ettei se löydä enää mitään, jossakin kohden annettu lupa jättää huomiotta hakusanoja. Ennenwanhaan(tm) kun pystyi seulomaan sen internetin synkimmänkin takakulman tiedot mukaan.
 
saahan tuolla järkevämmin muodostettua tekstiä vaikkapa eri kielelle verrattuna perus guuglekäännökseen
 
No hemputti, onkohan lähde validi inspehtoorille :D

The distance between the Suzuki SJ413 (1986, short wheelbase model) axle and chassis with stock suspension is around 7 inches. This measurement is taken from the center of the axle to the bottom of the frame rail.

Mielestäni ollaan ihan sektorilla, tuosta kun miinustelee akseliputken säteen ja pohjaanlyöntikumin, niin ei siihen juuri mitään jää vakiona.

Googlen vikahan nykypäivälle on ettei se löydä enää mitään, jossakin kohden annettu lupa jättää huomiotta hakusanoja. Ennenwanhaan(tm) kun pystyi seulomaan sen internetin synkimmänkin takakulman tiedot mukaan.
Nuo synkimmän takakulman tiedot löytyy vielä muilla hakukoneilla mutta niillä taas on muuten paskemmat algoritmit ja muut eivätkä sen takia taas kaikkea löydä.
 

Luo tili tai kirjaudu sisään kommentoidaksesi

Sinun täytyy olla jäsen voidaksesi jättää kommentin.

Luo käyttäjätili

Liity Konekansalaiseksi. Se on helppoa ja ilmaista! Rekisteröityneenä et näe mainoksia, voit käyttää hakua, näet alueita, joita nyt ovat piilossa...jne.

Kirjaudu sisään

Oletko jo Konekansan jäsen? Kirjaudu sisään tästä.

Takaisin
Ylös