Comments (10)
Hai fatto npm install
nella directory prima? per installare le dipendenze necessarie. Verrà a quel punto creata la directory node_modules
from rpi-fan.
Grazie perchè sono riuscito a far partire il software ma penso di avere ancora qualche problema hardware e mi viene il dubbio di aver fatto confusione coi collegamenti. Posto lo schema.
Questo è il mio config.json
{ "PIN_NUMBER": 11, "REFRESH_TIME": 3, "TEMPERATURE_THRESHOLD": 40.0, "WEB_SERVER": true, "SERVER_PORT": 4949, "FORBIDDEN_INTERVAL": { "hour": "00:00", "interval": 11 } }
from rpi-fan.
Lo shema sembra corretto, per capire se è un problema del software, potresti attivare il pin 11 (gpio 17) con il software in python o altri tool che l'os mette a disposizione e vedere se la ventola si aziona.
from rpi-fan.
Premetto che la ventola è funzionante, l'unico neo è che chiede 12v 0.10A ma sempre alimentata a 5V e andava solamente piu lenta.
Comunque pilotando da terminale i pin la ventola resta comunque ferma.
Ho impostato anche il pin 11 (GPIO17) come output e poi pio -g write 11 1
switchandolo piu volte tra 0 e 1 ma il risultato era lo stesso.
from rpi-fan.
Occhio a non fare confusione fra la numerazione fisica dei pin e quella sw dei gpio
from rpi-fan.
Ciao, ho risolto il mio problema sostiuento il transistor con un NPN S8050.
Ma ho un ulteriore problema....la ventola rimane sempre accesa: la soglia è impostata a 40*, al superamento si accendo ma quando si abbassa non si spegne.
Ho letto che rimane accesa per 5 min per non fare accendi/spegni continui ma qui non spegne per nulla. La funzione interessata è in index.js a riga 20?
from rpi-fan.
E' codice vecchissimo che andrebbe sicuramente aggiustato.
Il punto è, se vedi i log in console allora entra in quel flow.
vedi i log? Quando si dovrebbe spegnere la ventola lo vedi il log .... - Fan OFF! - ...
?
from rpi-fan.
Si lo trovo nel file INDEX.JS
from rpi-fan.
intendo in console dopo l'esecuzione dello script, vedi i log?
from rpi-fan.
NO! Non appare più anche se sulla pagina web nello stato della ventola si legge OFF
from rpi-fan.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpi-fan.