Thomas Chef 8 лет назад
Родитель
Сommit
b34bae63d7
2 измененных файлов с 27 добавлено и 0 удалено
  1. 24 0
      README.md
  2. 3 0
      makefile

+ 24 - 0
README.md

@@ -0,0 +1,24 @@
+ESP-01 Temperature logger project
+=====
+
+This SW project is used in the temperature logger in Näshulta. It sends its values every 2 minutes to chef.suka.se.
+
+Pin connections
+-----
+
+Pin no  | Function
+------------- | -------------
+1  | Vcc
+2  | 
+3  | 
+4  | Vcc
+5  | Vcc
+6  | DQ (pulled high)
+7  | 
+8  | GND
+
+
+Sensor
+------
+A Dallas 18B20 sensor is used to measure the temperature. It is connected to pin 6.
+The OneWire library is used.

+ 3 - 0
makefile

@@ -40,7 +40,9 @@ FLASH_LAYOUT ?= eagle.flash.4m.ld
 
 # Upload parameters
 UPLOAD_SPEED ?= 230400
+#UPLOAD_SPEED ?= 9600
 UPLOAD_PORT ?= /dev/cu.usbserial-A104VFS5
+#UPLOAD_PORT ?= /dev/tty.wchusbserialfd120
 UPLOAD_VERB ?= -v
 UPLOAD_RESET ?= ck
 
@@ -175,6 +177,7 @@ $(MAIN_EXE): $(CORE_LIB) $(USER_OBJ)
 	perl -e 'print "Build complete. Elapsed time: ", time()-$(START_TIME),  " seconds\n\n"'
 
 upload: all
+	#$(ESP_TOOL) -v -cd nodemcu -cb $(UPLOAD_SPEED) -cp $(UPLOAD_PORT) -ca 0x00000 -cf $(MAIN_EXE)
 	$(ESP_TOOL) -v -cd ck -cb $(UPLOAD_SPEED) -cp $(UPLOAD_PORT) -ca 0x00000 -cf $(MAIN_EXE)
 
 ota: all