Code C++ - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 #include <SPI.h> byte address = 0x00; int CS= 10; void setup() { pinMode (CS, OUTPUT); SPI.begin(); digitalPotWrite(100) } void loop() { } int digitalPotWrite(int value) { digitalWrite(CS, LOW); SPI.transfer(address); SPI.transfer(value); digitalWrite(CS, HIGH); } [B]code used with wemos:[/B] #include <SPI.h> byte address = 0x00; int CS= D8; void setup() { pinMode (CS, OUTPUT); SPI.beginTransaction(SPISettings(5000000, MSBFIRST, SPI_MODE0)); digitalPotWrite(100); } void loop() { } int digitalPotWrite(int value) { digitalWrite(CS, LOW); SPI.transfer(address); SPI.transfer(value); digitalWrite(CS, HIGH); SPI.endTransaction(); }
Is this an error messge?that's the error message that appears on the serial monitor:
What max voltage and max current are you talking about?voltage versus current at different loads
show your complete schematic. Hand drawn is O.K.now i'm reading the output of the potentiometer using the analog pin of an Arduino and also i obtain no change at the output.
My final aim of the project is to change the resistance remotely (through wifi) in order to study the IV characteristics (voltage versus current at different loads) of a solar panel. I'm using the LED just as an indication for changing the resistance to test the code. Forget about the LED, now i'm reading the output of the potentiometer using the analog pin of an Arduino and also i obtain no change at the output.
Is this an error messge?
Maybe it´s just some code uploading information.
What max voltage and max current are you talking about?
Solar cells are available from milliwatts to kilowatts...
show your complete schematic. Hand drawn is O.K.
***
Use "Serial.print" to send information to the serial monitor.
Klaus
i googled the message and found that it is an error caused by a watchdog resetIs this an error messge?
Maybe it´s just some code uploading information.
the panel is 60 watt. the open circuit voltage (Voc) is 22.57 V, and the short circuit current (Isc) is 3.58 A.What max voltage and max current are you talking about?
Solar cells are available from milliwatts to kilowatts...
the schematic is attached to the main post.show your complete schematic. Hand drawn is O.K.
yes i can obtain an oscilloscope in my college. but how to use it to check the signals??!
Aha, i got it now. But the panel and it's specifications aren't my problem now. I'm still trying to just control the mcp4131 digital potentiometer using nodemcu, i'm still in step one and i have problems with it.Hi,
Where is the complete schematic? In post#3 there just is a snippet of a wiring diagram. It's not really a schematic.
And I don't think it's complete. Where is the panel? And where is the circuit that can handle 23V and 3.6A?
Klaus
PS: please use the "preview" and to see and corrcet your post before sending it.
yes i tried an LED blink software and it worked wellHi,
I´m confused what you need. So let´s start with the basics:
* did the WEMOS board ever work (are you sure it is not defective)?
* did you successfully upload another software (like "LED blink") to the WEMOS board?
* did the LED blink?
Klaus
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?