![]() |
ovviamente...attivo wi fi e tutto è ok...se spunto poi il web banner mi da errore:
RA_040311_2236.cpp: In function 'void setup()': RA_040311_2236:60: error: 'class ReefAngelClass' has no member named 'LoadWebBanner' RA_040311_2236.cpp: In function 'void loop()': RA_040311_2236:85: error: 'class ReefAngelClass' has no member named 'WebBanner' |
Quote:
|
Santa pazienza, questo sarebbe il pde x il RA:
// Autogenerated file by RAGen (v1.0.4.92), (04/03/2011 22:38) // RA_040311_2238.pde // // This version designed for v0.8.5 Beta 12 or later /* The following features are enabled for this PDE File: #define WavemakerSetup #define MetalHalideSetup #define wifi #define StandardLightSetup */ #include <ReefAngel_Features.h> #include <ReefAngel_Globals.h> #include <ReefAngel_Wifi.h> #include <Wire.h> #include <OneWire.h> #include <Time.h> #include <DS1307RTC.h> #include <ReefAngel_EEPROM.h> #include <ReefAngel_NokiaLCD.h> #include <ReefAngel_ATO.h> #include <ReefAngel_Joystick.h> #include <ReefAngel_LED.h> #include <ReefAngel_TempSensor.h> #include <ReefAngel_Relay.h> #include <ReefAngel_PWM.h> #include <ReefAngel_Timer.h> #include <ReefAngel_Memory.h> #include <ReefAngel.h> void setup() { ReefAngel.Init(); //Initialize controller ReefAngel.SetTemperatureUnit(1); // set to Celsius Temperature ReefAngel.OverheatShutoffPorts = B00000000; // Ports that are always on ReefAngel.Relay.On(Port8); } void loop() { ReefAngel.ShowInterface(); // Specific functions ReefAngel.MHLights(Port1); ReefAngel.StandardLights(Port2); ReefAngel.StandardLights(Port3); ReefAngel.Wavemaker1(Port4); ReefAngel.Wavemaker2(Port5); ReefAngel.StandardFan(Port6); ReefAngel.StandardHeater(Port7); } SKETCH TOO BIG. Sul sito di arduino c'è scritto di togliere qualche #include, ma qualunque tolgo mi da errori. |
Rita87, cancella tutto e segui la mia guida a pagina 6 e vedi che si risolve questo problema, anche io lo avevo!
|
come impostare il ritardo dello skimmer dopo un blackout?
|
Quote:
prendi spunto dalla funzione per le HQI che trovi nel file ReefAngel.cpp: void ReefAngelClass::MHLights(byte LightsRelay, byte OnHour, byte OnMinute, byte OffHour, byte OffMinute, byte MHDelay) { unsigned int MHTimer = MHDelay; MHTimer *= SECS_PER_MIN; if ( now()-RAStart > MHTimer ) StandardLights(LightsRelay, OnHour, OnMinute, OffHour, OffMinute); } puoi provare così: nel file .pde sopra al void setup() inserisci questo: void RitardoSkimmer(byte SKPort, byte SKDelay) { unsigned int SKTimer = SKDelay; SKTimer *= SECS_PER_MIN; if ( now()-RAStart > SKTimer ) ReefAngel.Relay.On(SKPort); } Poi nella sezione loop() del .pde inserisci questo: RitardoSkimmer(Port4,60) dovrebbe funzionare .... provate ... :-D ------------------------------------------------------------------------ in linea generale... per capire cosa fà il vostro controller... andatevi a vedere il file ReefAngel.cpp e da lì potete prendere anche diversi spunti https://github.com/curtbinder/ReefAn.../ReefAngel.cpp |
Luke per caso puoi passarmi il codice per alba e tramonto tramite pwm?
|
Quote:
sopra al void setup() byte PWMSlope(byte startHour, byte startMinute, byte endHour, byte endMinute, byte startPWM, byte endPWM, byte Duration, byte oldValue) { int Now = NumMins(hour(), minute()); int Start = NumMins(startHour, startMinute); int StartD = Start + Duration; int End = NumMins(endHour, endMinute); int StopD = End - Duration; if ( Now >= Start && Now <= StartD ) return constrain(map(Now, Start, StartD, startPWM, endPWM), startPWM, endPWM); else if ( Now >= StopD && Now <= End ) { byte v = constrain(map(Now, StopD, End, startPWM, endPWM), startPWM, endPWM); return endPWM - v; } else if ( Now > StartD && Now < StopD ) return endPWM; // lastly return the existing value return oldValue; } poi in void loop() ho aggiunto queste due linee.... ReefAngel.PWM.SetActinic(PWMSlope(12,15,23,45,0,In ternalMemory.LEDPWMActinic_read(),90,ReefAngel.PWM .GetActinicValue())); ReefAngel.PWM.SetDaylight(PWMSlope(13,30,22,30,0,I nternalMemory.LEDPWMDaylight_read(),30,ReefAngel.P WM.GetDaylightValue())); così facendo le attiniche si accendono alle 12:15 con una rampa progressiva x 90 minuti che và dal valore min (ZERO) al max impostato nel menu PWM del controller.... la rampa di discesa è l'inverso.... per i bianchi... partono alle 13:30 e la rampa dura 30 minuti.... |
OK grazie mille oggi provo!
|
allora.... per chi ha intenzione di utilizzare il PWM... sappiate che (non sò per quale motivo) il costruttore non collega in automatico le uscite PWM al segnale....
quindi dovete prendere la vostra scatola relè...aprirla e fare le seguenti saldature: http://s2.postimage.org/iea0djl0/RA_pwm_saldature.jpg per chi invece, come me, in un eccesso di zelo avesse acquistato anche il booster PWM 0-10V... ma si accorge che non gli serve e vuole utilizzare il PWM 0-5V deve fare queste saldature: http://s4.postimage.org/1czn1fv1g/RA_pwm_saldature2.jpg |
Tutti gli orari sono GMT +2. Attualmente sono le 17:54. |
Powered by vBulletin versione 3.8.9
Copyright ©: 2000 - 2025, Jelsoft Enterprises Ltd.
Traduzione italiana Team: AcquaPortal
User Alert System provided by
Advanced User Tagging v3.2.5 Patch Level 2 (Lite) -
vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Copyright Zero Pixel Srl