Hi Ruben
Can you tell please how do you initialise the MCP41010 and set the MCP41010 in potentiometer mode?
And where are the RaiseWiper and LowerWiper macros?
How do you control the MCP41010?
Viktor
Search found 342 matches
- Fri Apr 03, 2020 12:12 am
- Forum: AVR & Arduino
- Topic: arduino and spi on software(solved)
- Replies: 18
- Views: 11548
- Sun Feb 02, 2020 12:04 am
- Forum: General Programming
- Topic: YGC-FS wind speed sensor data: HEX or decimal?
- Replies: 16
- Views: 6972
Re: YGC-FS wind speed sensor data: HEX or decimal?
I need to do more work. For now I stopped at: - Wind directory sensor: display the result of FC8 macro GetResponseInt as an integer (0-360). - Wind speed sensor: show the converted to string integer from the FC8 macro GetResponseInt. Note. When the Modbus master requests the data from both sensors a...
- Fri Jan 24, 2020 9:20 pm
- Forum: General Programming
- Topic: YGC-FS wind speed sensor data: HEX or decimal?
- Replies: 16
- Views: 6972
YGC-FS wind speed sensor data: HEX or decimal?
I will update this post a few weeks later.
- Fri Jan 24, 2020 8:57 am
- Forum: General Programming
- Topic: YGC-FS wind speed sensor data: HEX or decimal?
- Replies: 16
- Views: 6972
YGC-FS wind speed sensor data: HEX or decimal?
Thank you Martin for helping. Re: .. .this is a misunderstanding as to what the sensor sends - it looks to me like it sends a 16 bit number as msb then lsb. (So ws = (b1 << 8 ) + b2) where b1 is first data byte read and b2 second. You are right. Sensor does send the data as one 'word': msb and lsb. ...
- Fri Jan 24, 2020 2:52 am
- Forum: General Programming
- Topic: YGC-FS wind speed sensor data: HEX or decimal?
- Replies: 16
- Views: 6972
Re: Byte in HEX format
I agree with you Martin: Hex(26) is exactly the same as decimal(38) - no conversion necessary... However I have to repeat my question: Question 2 How can I add 0x to the byte value 26? The reason I have asked this question is that Modbus sends msb as 26. Not as 0x26. Do you see the difference? 0x26 ...
- Thu Jan 23, 2020 10:58 am
- Forum: General Programming
- Topic: YGC-FS wind speed sensor data: HEX or decimal?
- Replies: 16
- Views: 6972
YGC-FS wind speed sensor data: HEX or decimal?
I understand you Martin.
Hex 26 = Dec 38.
---
Do you know how to convert hex byte to decimal byte in FC8?
Hex 26 = Dec 38.
---
Do you know how to convert hex byte to decimal byte in FC8?
- Thu Jan 23, 2020 9:49 am
- Forum: General Programming
- Topic: YGC-FS wind speed sensor data: HEX or decimal?
- Replies: 16
- Views: 6972
Re: Byte in HEX format
Sensor does return two bytes or one integer in hex. I have checked the manual example. In the manual example the sensor returns 00 26 in hex of 38 in decimal (the online converter does the same). I am not sure how to convert the hex byte as 26 in flowcode to decimal. However if I use 0x26 as the byt...
- Thu Jan 23, 2020 2:59 am
- Forum: General Programming
- Topic: YGC-FS wind speed sensor data: HEX or decimal?
- Replies: 16
- Views: 6972
YGC-FS wind speed sensor data: HEX or decimal?
Thank you Martin. No number to add. The Wind sensor presents the number in hex but in the range of 0 to 9 ( if I understood correctly). To simplify the calculations I want to use the hex format. If I use the modbus data as 26 I have to change this hex 26 to decimal. If I use the modbus data as 0x26 ...
- Thu Jan 23, 2020 12:09 am
- Forum: General Programming
- Topic: YGC-FS wind speed sensor data: HEX or decimal?
- Replies: 16
- Views: 6972
YGC-FS wind speed sensor data: HEX or decimal?
Do I understand correctly:
- Flowcode does change the hex or decimal to binary first and do the calculations second.
I still cannot figure out how to add 0x to byte in decimal as 26.
- Flowcode does change the hex or decimal to binary first and do the calculations second.
I still cannot figure out how to add 0x to byte in decimal as 26.
- Wed Jan 22, 2020 10:31 pm
- Forum: General Programming
- Topic: YGC-FS wind speed sensor data: HEX or decimal?
- Replies: 16
- Views: 6972
YGC-FS wind speed sensor data: HEX or decimal?
The YGC-FS wind speed sensor sends to user (via Modbus) the data in Hex format as msb and lsb bytes. Example: lsb_byte = 26 To get the wind speed I have to convert 26 (in hex) to decimal (= 38) and divide it by 10 (result in m/sec). I have found on internet some functions in C to convert the hex to ...
- Mon Jan 20, 2020 10:32 pm
- Forum: Programming Tips & Tricks
- Topic: WS2812 LED Flexible 32 x 8 grid
- Replies: 17
- Views: 17438
Re: WS2812 LED Flexible 32 x 8 grid
Thank you for sharing this project Ben.
- Fri Jan 17, 2020 10:00 pm
- Forum: Programming Tips & Tricks
- Topic: WS2812 LED Flexible 32 x 8 grid
- Replies: 17
- Views: 17438
Re: WS2812 LED Flexible 32 x 8 grid
Interesting design.
If you waterproof it and use for sailing boat mast light the skipper can change the light from white (on anchor) to some other color during the mayday situation to attract the rescue team attention.
If you waterproof it and use for sailing boat mast light the skipper can change the light from white (on anchor) to some other color during the mayday situation to attract the rescue team attention.
- Wed Jan 15, 2020 11:55 pm
- Forum: General Programming
- Topic: Chinese YGC-FX and YGC-FS modbus Node ID question
- Replies: 8
- Views: 4605
Re: Chinese YGC-FX and YGC-FS modbus Node ID question
Thank you Ben
I have contacted Chinese manufacturer with node id write function question. I hope I will solve this problem.
------------------
Wind vane YGC-FX update
I have contacted Chinese manufacturer with node id write function question. I hope I will solve this problem.
------------------
Wind vane YGC-FX update
- Wed Jan 15, 2020 9:28 am
- Forum: Flowcode V8
- Topic: ACX7xx!
- Replies: 8
- Views: 3267
Re: ACX7xx!
Hello Jorgen
I checked the:
C:\ProgramData\MatrixTSL\FlowcodeV8\Components
No problems. Found it.
Any admin rights problems?
I checked the:
C:\ProgramData\MatrixTSL\FlowcodeV8\Components
No problems. Found it.
Any admin rights problems?
- Wed Jan 15, 2020 12:58 am
- Forum: General Programming
- Topic: Chinese YGC-FX and YGC-FS modbus Node ID question
- Replies: 8
- Views: 4605
Chinese YGC-FX and YGC-FS modbus Node ID question
How can I change the node/slave number in this Chinese wind sensor?
FC8 has two macros with preset functions, but they ask for the Slave ID.
I have to change two wind devices id from 01 to 16 and 17.
Would be great is somebody can help me.
FC8 has two macros with preset functions, but they ask for the Slave ID.
I have to change two wind devices id from 01 to 16 and 17.
Would be great is somebody can help me.
- Tue Jan 14, 2020 8:45 pm
- Forum: General Programming
- Topic: Chinese YGC-FX and YGC-FS modbus Node ID question
- Replies: 8
- Views: 4605
Re: Link to YGC-FX and YGC-FS
Re: send us a link if you find a good product.
The products I have are for weather station.
This is the link
https://www.aliexpress.com/item/3294319 ... 4c4dKO7DOu
The products I have are for weather station.
This is the link
https://www.aliexpress.com/item/3294319 ... 4c4dKO7DOu
- Tue Jan 14, 2020 8:04 pm
- Forum: General Programming
- Topic: Chinese YGC-FX and YGC-FS modbus Node ID question
- Replies: 8
- Views: 4605
Re: Chinese wind YGC-FX and YGC-FS modbus id question
Create an int from lsb and msb I am not sure which one is received first. MSB should be 1st, isn't it? And only after I add the LSB byte. It is not easy to translate Chinglish manual to English. Example of manual page: ModBus CRC check steps 1. Preset 16-bit register hexadecimal FFFF, said the regi...
- Tue Jan 14, 2020 11:48 am
- Forum: General Programming
- Topic: Chinese YGC-FX and YGC-FS modbus Node ID question
- Replies: 8
- Views: 4605
Re: YGC-FX =Slave 02, YGC-FS = Slave 01
I could move forward a bit by using the English manual. The manual was sent to me by the Chinese seller (after a few emails to him). The manual says about CRC: 01 Success, 00 Fail . It didn't work. Looks like 0=OK, 1=Fail. ------------------- I've got some results with: Read Holding register 0x00, s...
- Tue Jan 14, 2020 9:13 am
- Forum: General Programming
- Topic: Chinese YGC-FX and YGC-FS modbus Node ID question
- Replies: 8
- Views: 4605
Chinese YGC-FX and YGC-FS modbus Node ID question
Have problems communicating with wind vane and wind speed Modbus devices.
Has anyone used those devices?
Thanks.
Has anyone used those devices?
Thanks.
- Sat Jan 11, 2020 10:40 pm
- Forum: Flowcode V8
- Topic: ACX7xx!
- Replies: 8
- Views: 3267
Re: ACX7xx!
Hello jgu1
Please have a look at John's Crow project
http://www.matrixtsl.com/mmforums/viewt ... lit=acs712
Pay attention at ACS712_datasheet: Sensitivity vs sensed current.
Please have a look at John's Crow project
http://www.matrixtsl.com/mmforums/viewt ... lit=acs712
Pay attention at ACS712_datasheet: Sensitivity vs sensed current.
- Sun Oct 20, 2019 12:13 pm
- Forum: Flowcode V8
- Topic: I2C GLCD start problem
- Replies: 10
- Views: 5557
Re: I2C GLCD start problem
Hello Jan ssd1306 default address The default 7-bit I2C address is = 0x3C or 0b00111100 Which makes the 7-bit address + Write bit = 8bit address or = 0x78 or 0b01111000 (120) And hence the 7-bit address + Read bit = 8bit address or = 0x79 or 0b01111001 ----------- The 8-bit address has one bit to ch...
- Mon Oct 14, 2019 1:19 am
- Forum: Flowcode V8
- Topic: HTTP GET syntax question (solved)
- Replies: 2
- Views: 1801
Re: HTTP GET syntax question
Solved.
- Mon Oct 14, 2019 12:37 am
- Forum: Flowcode V8
- Topic: HTTP GET syntax question (solved)
- Replies: 2
- Views: 1801
Re: HTTP GET syntax question
Found an answer:
request = "GET /index3.html HTTP/1.1\r\nHost: 192.168.1.100\r\n\r\n"
Now I can get Apache2 response: 200 OK.
But not enough room to get the text from index3.html
request = "GET /index3.html HTTP/1.1\r\nHost: 192.168.1.100\r\n\r\n"
Now I can get Apache2 response: 200 OK.
But not enough room to get the text from index3.html
- Mon Oct 14, 2019 12:26 am
- Forum: Flowcode V8
- Topic: HTTP GET syntax question (solved)
- Replies: 2
- Views: 1801
HTTP GET syntax question (solved)
Example works OK (with matrix team example) "GET /en/observation/rss/2647632 HTTP/1.1\nHost: weather-broker-cdn.api.bbci.co.uk\n\n" I have 200 OK. When I try to access the RPi3 Apache2 server by: changing the address to: 192.168.1.100 changing the GET to: "GET /index3.html HTTP/1.1\n" The WireShark...
- Mon Oct 07, 2019 9:04 am
- Forum: Flowcode V8
- Topic: Servo controller!
- Replies: 3
- Views: 2245
Re: Servo controller!
Glad it works Jorgen.
All good.
Sometimes it is easy to help somebody else than to find my own mistakes.
All good.
Sometimes it is easy to help somebody else than to find my own mistakes.