I wrote code for MLX90614ESF-BAA[supply volt typ=3V](IR Temp sensor).
This use SMBus.
SMBus is like i2c, not same.
MLX90614 don't operate by using i2c_utility.
RepetedStart(Sr) occure Timeout error on SMBus.
I modified Sr.
I will update i2c_utility to be able to use on i2c and SMBus.
Prop0 Cog6 ok
i2c_detect
0 1 2 3 4 5 6 7 8 9 A B C D E F
00: 00 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- 5A -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
i2c_device:2
[0 - 7] and [h78 - h7F] are reserve-address
Prop0 Cog6 ok
disp_eeprom
Address Contents Writable
00 9984 yes To_max
01 62E3 yes To_min
02 201 yes PWMCTRL
03 F71C yes Ta range
04 FFFF yes emissivity correction coefficient
05 1FB3 yes config register1
06 8864 no Melexis reserved
07 8864 no Melexis reserved
08 8A07 no Melexis reserved
09 8F0F no Melexis reserved
0A A13C no Melexis reserved
0B 0 no Melexis reserved
0C 8643 no Melexis reserved
0D A8 no Melexis reserved
0E 5A yes SMbus address (LSB only)
0F 0 yes Melexis reserved
10 0 no Melexis reserved
11 7E0F no Melexis reserved
12 0 no Melexis reserved
13 800A no Melexis reserved
14 0 no Melexis reserved
15 1C2C no Melexis reserved
16 90 no Melexis reserved
17 338C no Melexis reserved
18 0 no Melexis reserved
19 0 yes Melexis reserved
1A 244A no Melexis reserved
1B 60B6 no Melexis reserved
1C A no ID number
1D 74 no ID number
1E 24 no ID number
1F 82 no ID number
Prop0 Cog6 ok
Prop0 Cog6 ok
disp_RAM
Address Contents
00 Melexis reserved:2BE5
01 Melexis reserved:AF
02 Melexis reserved:45FA
03 Melexis reserved:19D8
04 Raw data IR ch 1:1
05 Raw data IR ch 2:0
06 Tambient (16bit format, $27AD=10_157=-70C to $7FFF=32_767=382C):3ACA
07 Tobject1 (16bit format, $27AD=10_157=-70C to $7FFF=32_767=382C):3ACE
08 Tobject2 (16bit format, $27AD=10_157=-70C to $7FFF=32_767=382C):15CA
09 Melexis reserved:E4A
0A Melexis reserved, Ta1_PKI:3ACA
0B Melexis reserved, Ta2_PKI:3A6E
0C Melexis reserved:50F
0D Melexis reserved:0
0E Melexis reserved:45FB
0F Melexis reserved:461
10 Melexis reserved:CF
11 Melexis reserved:1
12 Melexis reserved:0
13 Melexis reserved, Scale_Alpha_Ratio:8
14 Melexis reserved, Scale_Alpha_Slope:C
15 Melexis reserved, IIR_Filter:4
16 Melexis reserved, Ta1_PKI_Fraction:23
17 Melexis reserved, Ta2_PKI_Fraction:0
18 Melexis reserved:0
19 Melexis reserved:3A
1A Melexis reserved:511
1B Melexis reserved, FIR_Filter:5
1C Melexis reserved:14
1D Melexis reserved:13A
1E Melexis reserved:557
1F Melexis reserved:1B0
Prop0 Cog6 ok
Prop0 Cog6 ok
h5C set_SA
Prop0 Cog6 ok
After power cycle
Prop0 Cog6 ok
i2c_detect
0 1 2 3 4 5 6 7 8 9 A B C D E F
00: 00 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- 5C -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
i2c_device:2
[0 - 7] and [h78 - h7F] are reserve-address
Prop0 Cog6 ok
disp_eeprom
Address Contents Writable
00 9984 yes To_max
01 62E3 yes To_min
02 201 yes PWMCTRL
03 F71C yes Ta range
04 FFFF yes emissivity correction coefficient
05 1FB3 yes config register1
06 8864 no Melexis reserved
07 8864 no Melexis reserved
08 8A07 no Melexis reserved
09 8F0F no Melexis reserved
0A A13C no Melexis reserved
0B 0 no Melexis reserved
0C 8643 no Melexis reserved
0D A8 no Melexis reserved
0E 5C yes SMbus address (LSB only) <--- Changing to h5C
0F 0 yes Melexis reserved
10 0 no Melexis reserved
11 7E0F no Melexis reserved
12 0 no Melexis reserved
13 800A no Melexis reserved
14 0 no Melexis reserved
15 1C2C no Melexis reserved
16 90 no Melexis reserved
17 338C no Melexis reserved
18 0 no Melexis reserved
19 0 yes Melexis reserved
1A 244A no Melexis reserved
1B 60B6 no Melexis reserved
1C A no ID number
1D 74 no ID number
1E 24 no ID number
1F 82 no ID number
Prop0 Cog6 ok
Sal reports all the Propforth 6.0 builds are now cleaned up and reliable on his windows machines.
This week week he plans to move the build process onto the Mac, and sent me a copy to run on Linux.
We will be creating the Propforth 6.0 physical prop 1 development kernels for this step.
After we get the build hardware ware set up, Sal will add the FPGA prop 1 build steps. The FPGA material will be optional, but will be available to anyone with the hardware as more steps in the same build process. The prop 1 FPGA will be one or more of: FPGA emulation of the full prop1; FPGA emulation of the prop 1 with the unused (by PropForth) resources removed; FPGA emulation of the prop1 optimized for propforth with increased cogs (CPU cores), increased cog memory (core private memory), and increased hub memory (shared by all cogs). Ideally we would all three of these, and instructions to change between one and the next, but we'll see how time and testing work out.
Sal has all his material in git, and plans to make it available to the public on github.
My task was to get propforth 5.5 on github, but I got stuck halfway through the Udacity course, and did not figure out how to do sub-directories in the git repository yet. Sal and I will walk through the git process in the next couple weeks, hopefully I can get straightened out enough to contribute.
So our development path looks like:
* post PropForth 5.5 on github
* Prop 1 build and test on Windows, Mac, and Linux
* post interim PropForth 6.0 on github
* FPGA prop build and test on all platforms
* post PropForth 6.0 on github
Someday, I wish this file can download as text-file not png-file.
Text.file can display.
But when downloading, it is another file-name.
This Forum is bad UI. Edit-date also don't be displayed. Posts still is 0. Abatar is small. etc,etc.
I think previous Forum is better than now.
I wish to back to previous Forum.
Hi.
I try to write code for WS2822.
I have a question about address.
There is table'set up address' in page6 on PDF.
(This table on PDF is alittle incorrect.)
WS2822 have 3072channel(LED:1024pcs) on PDF.
But there are 1784channnel(255 X 7 - 1) on table'set up address'.
What am I misunderstanding?
When there is attached files, comment don't posted.
This Forum is bad UI.
Hi
Setting of addres is ok.
WS2822 also operate finely.
Value of 2nd ch(1+m) aand 3rd ch(2+m).
I refered Arduino code.
I back to value on PDF.
I try to test about more than 256channel.
[pre]
uuuuu
[/pre]
Text sometimes cannot copy/paste .
I think previous Forum is better than now.
I wish to back to previous Forum.
@caskaz - I don't think it's your browser. The same happens for me. The dowlink filename becomes different from what's shown when I hover the mouse over the attachment. It becomes some long hash string or something. Another forum issue to report..
Comments
This use SMBus.
SMBus is like i2c, not same.
MLX90614 don't operate by using i2c_utility.
RepetedStart(Sr) occure Timeout error on SMBus.
I modified Sr.
I will update i2c_utility to be able to use on i2c and SMBus.
Adding 'reset', 'sleep', 'wakeup', 'flag'
Updated i2c_utility.
Not yet checked it by using other i2c-device.
Sal reports all the Propforth 6.0 builds are now cleaned up and reliable on his windows machines.
This week week he plans to move the build process onto the Mac, and sent me a copy to run on Linux.
We will be creating the Propforth 6.0 physical prop 1 development kernels for this step.
After we get the build hardware ware set up, Sal will add the FPGA prop 1 build steps. The FPGA material will be optional, but will be available to anyone with the hardware as more steps in the same build process. The prop 1 FPGA will be one or more of: FPGA emulation of the full prop1; FPGA emulation of the prop 1 with the unused (by PropForth) resources removed; FPGA emulation of the prop1 optimized for propforth with increased cogs (CPU cores), increased cog memory (core private memory), and increased hub memory (shared by all cogs). Ideally we would all three of these, and instructions to change between one and the next, but we'll see how time and testing work out.
Sal has all his material in git, and plans to make it available to the public on github.
My task was to get propforth 5.5 on github, but I got stuck halfway through the Udacity course, and did not figure out how to do sub-directories in the git repository yet. Sal and I will walk through the git process in the next couple weeks, hopefully I can get straightened out enough to contribute.
So our development path looks like:
* post PropForth 5.5 on github
* Prop 1 build and test on Windows, Mac, and Linux
* post interim PropForth 6.0 on github
* FPGA prop build and test on all platforms
* post PropForth 6.0 on github
I cannot download all uploaded files at all.
Why?
I must be something setting on my PC?
Operated SinglePhaseStepperMOtor inside clock.
[http]
Or my PC is wrong?
fl
{
PropForth 5.5
2015/07/12 10:33:36
P0
220ohm -- SinglePhaseSteppMotor Coil -- P1
}
===========================================================================
Constants
===========================================================================
0 wconstant out1
1 wconstant out2
clkfreq constant 1second
d220 wconstant cw_pulse
===========================================================================
Constants
===========================================================================
variable flag
===========================================================================
Main
===========================================================================
lockdict create a_delay100us forthentry
$C_a_lxasm w, h11C h113 1- tuck - h9 lshift or here W@ alignl h10 lshift or l,
z1SyZKN l, z3[yPSJ l, z1SyLI[ l, z1SV01X l, z2WiP[R l, z20iPak l, z3ryPW0 l, z1SV000 l,
z1vi l,
freedict
Initial setting
( -- )
: init
out1 pinout out2 pinout
-1 flag L!
;
Check flag
( -- )
: check flag L@ invert flag L! flag L@ ;
Rotate to cw
( -- )
: cw
check
if
out1 pinhi
d220 a_delay100us
out1 pinlo
else
out2 pinhi
d220 a_delay100us
out2 pinlo
then
;
Rotate to ccw
( -- )
: ccw
check
if
out1 pinhi
d70 a_delay100us
out1 pinlo
out2 pinhi
d140 a_delay100us
out2 pinlo
else
out2 pinhi
d70 a_delay100us
out2 pinlo
out1 pinhi
d140 a_delay100us
out1 pinlo
then
;
Moving clock needle to cw/ccw
( -- )
: demo
init
d60 0 do cw d200 delms loop
d60 0 do ccw d200 delms loop
d10 0 do cw d1000 i d100 * - delms loop
d10 0 do ccw d1000 i d100 * - delms loop
;
{
Delay word for unit 100usec
( n1 -- ) Delay time = n1 x 100usec
$C_stTOS:n1
$C_treg1:
fl
build_BootOpt :rasm
__1
jmpret __100usret , # __100us
djnz $C_stTOS , # __1
spop
jexit
__100us
mov $C_treg1 , __100usec
add $C_treg1 , cnt
waitcnt $C_treg1 , # 0
__100usret
ret
5+(7996-18)=7983
__100usec
d7983
;asm a_delay100us
}
[http]
https://twitter.com/caskazsan
Where is uploaded file?
Someday, I wish this file can download as text-file not png-file.
Text.file can display.
But when downloading, it is another file-name.
This Forum is bad UI. Edit-date also don't be displayed. Posts still is 0. Abatar is small. etc,etc.
I think previous Forum is better than now.
I wish to back to previous Forum.
I try to write code for WS2822.
I have a question about address.
There is table'set up address' in page6 on PDF.
(This table on PDF is alittle incorrect.)
WS2822 have 3072channel(LED:1024pcs) on PDF.
But there are 1784channnel(255 X 7 - 1) on table'set up address'.
What am I misunderstanding?
When there is attached files, comment don't posted.
This Forum is bad UI.
Charactewrs below is not posted.
I think previous Forum is better than now.
I wish to back to previous Forum.
But it cannot set address.
GrayControl cannot also control well.
Anybody is successful to contril WS2822?
Always only file. Always only comments.
I think previous Forum is better than now.
I wish to back to previous Forum.
-Tor
Setting of addres is ok.
WS2822 also operate finely.
Value of 2nd ch(1+m) aand 3rd ch(2+m).
I refered Arduino code.
I back to value on PDF.
I try to test about more than 256channel.
[pre] [/pre]
Text sometimes cannot copy/paste .
I think previous Forum is better than now.
I wish to back to previous Forum.
I've cleaned up a few of the empty comments for you. Obviously you've had some issues posting, so I will notify the forum techs to check this thread.
I can't say when they will be available, as we are all in different timezones! In the meantime...... Please keep creating and posting!
Don't let a few empty text boxes get in the way of ws2822 success!!
All the best.
Always only file. Always only comments.
I think previous Forum is better than now.
I wish to back to previous Forum.
Hmm, maybe it is browser dependent ?I posted a Binary file, and a comment, with no special effort here, in Firefoxhttp://forums.parallax.com/discussion/comment/1338138/#Comment_1338138
My browser cause strange in this forum?
Filename is changed another when downloading file from forum.
This also is caused by browser?
-Tor