Home  |  Contents 
Microcontroller and PC projects
  Forum Index : Microcontroller and PC projects         Section
Subject Topic: stmF7Mite repport Post ReplyPost New Topic
<< Prev Page of 10 Next >>
Author
Message << Prev Topic | Next Topic >>
darthmite
Senior Member
Senior Member
Avatar

Joined: 20 November 2011
Location: France
Online Status: Offline
Posts: 219
Posted: 26 September 2015 at 9:26pm | IP Logged Quote darthmite

Hi ,

I just finished the base for 3D Object and it work well for 100% software 3D
We can load up to 25 object , each can have 600 points and 600 faces.
But try to keep this value lower as possible to be fast.
In same time Uwe resolved the COM1 and 2 issue and made the SPI Library work !!

Some more next time ...

Cheers.



Edited by darthmite on 26 September 2015 at 9:26pm


__________________
Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)


Back to Top View darthmite's Profile Search for other posts by darthmite
 
phantomnet
Newbie
Newbie


Joined: 21 September 2015
Location: United Kingdom
Online Status: Offline
Posts: 9
Posted: 26 September 2015 at 9:31pm | IP Logged Quote phantomnet

if i’ll write :
10 color red,black
20 cls 0
30 color blue,white
40 print “anything”

it should to be printed on lcd as fore color: blue and background color: white
but is not?! :(
lines 10 and 20 doing their job but line 30 isnt
Back to Top View phantomnet's Profile Search for other posts by phantomnet
 
darthmite
Senior Member
Senior Member
Avatar

Joined: 20 November 2011
Location: France
Online Status: Offline
Posts: 219
Posted: 26 September 2015 at 9:51pm | IP Logged Quote darthmite

I don't know what version you using , but here it's ok on version a34


__________________
Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
Back to Top View darthmite's Profile Search for other posts by darthmite
 
phantomnet
Newbie
Newbie


Joined: 21 September 2015
Location: United Kingdom
Online Status: Offline
Posts: 9
Posted: 26 September 2015 at 10:22pm | IP Logged Quote phantomnet

I'm using latest version A35
I've check on A34 and is not ok !!
it just print fore:white, Bacground:blue (system colors) and
you cannot have to change Print command colors, only system colors!!

If you type separate commands like
> color blue,white
> print "232323"
232323
>
it's working

BUT

> 10 color blue,white
> 20 print "asdasda"
> run
asdasda
>
its not working !!!

Back to Top View phantomnet's Profile Search for other posts by phantomnet
 
darthmite
Senior Member
Senior Member
Avatar

Joined: 20 November 2011
Location: France
Online Status: Offline
Posts: 219
Posted: 26 September 2015 at 10:29pm | IP Logged Quote darthmite

Strange

Something for Uwe to try out.
First time I tried in console , it's why it worked.


__________________
Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
Back to Top View darthmite's Profile Search for other posts by darthmite
 
phantomnet
Newbie
Newbie


Joined: 21 September 2015
Location: United Kingdom
Online Status: Offline
Posts: 9
Posted: 26 September 2015 at 11:04pm | IP Logged Quote phantomnet

This is my test setup:

STM32F746 Discovery
Arduino proto shield
CC1101 board


Rear view

Front view

Connectors

Prototype Shield

Work in progress:
CC1101 432Mhz scanner (thanks for SPI1/SPI2 implementation )


Back to Top View phantomnet's Profile Search for other posts by phantomnet
 
Zonker
Guru
Guru
Avatar

Joined: 18 August 2012
Location: United States
Online Status: Offline
Posts: 646
Posted: 27 September 2015 at 2:19am | IP Logged Quote Zonker

Humm... Awesome setup...! But what type of display unit are you using..? I see ST on it... Not sure how it interfaces... I have a discovery board, but no touch display for it... Looks like the firmware package is shaping up nicely..! I was wondering if support for the A/D and D/A hardware would be included...

Anyway.. Nice work Gent's..!
Back to Top View Zonker's Profile Search for other posts by Zonker
 
matherp
Guru
Guru


Joined: 11 December 2012
Location: United Kingdom
Online Status: Online
Posts: 1573
Posted: 27 September 2015 at 6:57am | IP Logged Quote matherp

Great work

Edited by matherp on 27 September 2015 at 7:19am
Back to Top View matherp's Profile Search for other posts by matherp
 
phantomnet
Newbie
Newbie


Joined: 21 September 2015
Location: United Kingdom
Online Status: Offline
Posts: 9
Posted: 27 September 2015 at 7:51am | IP Logged Quote phantomnet

Zonker:
Board is STM32F746G-DISCO from ST
link

Firmware is MMBasic 4.5 like in this topic.
Back to Top View phantomnet's Profile Search for other posts by phantomnet
 
derexponent
Newbie
Newbie


Joined: 20 September 2015
Location: Germany
Online Status: Offline
Posts: 24
Posted: 27 September 2015 at 11:04am | IP Logged Quote derexponent

i just uploaded a new version (a36)


> 10 color blue,white
> 20 print "asdasda"
> run
asdasda
>
its not working !!!


should work now

and here a video with 3D-Objects-Functions from Fabrice

3dObjects-video

here a second video to demonstrate the multitouch

multitouch

leave a comment if spi should have more settings
(like LSB/MSB, more speed options)

Uwe

Edited by derexponent on 27 September 2015 at 11:08am
Back to Top View derexponent's Profile Search for other posts by derexponent
 
derexponent
Newbie
Newbie


Joined: 20 September 2015
Location: Germany
Online Status: Offline
Posts: 24
Posted: 27 September 2015 at 11:40am | IP Logged Quote derexponent

Zonker wrote:
I was wondering if support for the A/D and D/A hardware would be included...

Anyway.. Nice work Gent's..!



ADC is comming next --> EDIT : ADC is working with new update A.37
but the two DAC-Ports are not routed to the Arduino connector
(and used for other functions)

but the board has a two channel sound DAC on a headphone jack
so maybe we can handle analog output at this way

or PWM at a normal GPIO with an external RC filter.

Uwe

Edited by derexponent on 27 September 2015 at 5:03pm
Back to Top View derexponent's Profile Search for other posts by derexponent
 
phantomnet
Newbie
Newbie


Joined: 21 September 2015
Location: United Kingdom
Online Status: Offline
Posts: 9
Posted: 27 September 2015 at 9:23pm | IP Logged Quote phantomnet

Uwe:

SPI working good. If You can add more options it will be more flexible.

I have found another issue:
Some times (every 20-30sec) during do/loop in test sub lcd loosing horizontal synchro for 1-2 frames.

It is simple scanner using RF1100SE board with CC1101 chip.


Sub test()
  graph_init()                                    'draw layout
  spi_setup()                                     'spi setup
  cc1101_setup()                                  'set CC1101 registers
  Do
   For cc= 0 To 63                                '64 channels
    Line((cc*4)+204,210)-((cc*4)+206,20),Black,BF 'clear prev draw
    spiWriteReg(&h0A,cc)                          ' set new channel
    rr=RSSI(spireadreg(&hf4))                     ' read RSSI level
    Pixel((cc*4)+204,100-rr)=Red                  ' draw level dots
    Pixel((cc*4)+205,100-rr)=Red
    Pixel((cc*4)+206,100-rr)=Red
    If tocz(5,22,85,72)=1 GoTo go_out             'check touch
   Next cc
  Loop

go_out:

  SPI close 1                                      'close spi
End Sub


Sub graph_init()
  Color White,Black
  Cls 0
  Line(0,0)-(479,18),50712,BF   'top status bar
  Line(5,22)-(85,72),50712,BF   'draw button
  Color Black,50712             'color for button label
  Print @(19,41) "Stop scan"    'botton label
  Line(203,24)-(459,24),Blue
  Line(203,222)-(459,222),Blue
'drawing dots net
  For i=0 To 23 Step 4
   Line(203,24+(i*8))-(459,24+(i*8)),Blue
  Next i
  For i=0 To 32 Step 4
    For j=0 To 24
      Line((i*8)+203,219-(j*8))-((i*8)+203,217-(j*8)),Blue
    Next j
  Next i
End Sub

Function tocz(x1,y1,x2,y2)
 Local n
 n=MTouched(#s)
 If (n=1) Then
  x=MTouched(#x,1)
  y=MTouched(#y,1)
  If (x>=x1)And(x<x2)And(y>y1)And(y<y2) Then
    tocz=1
  Else
    tocz=0
  EndIf
 Else
  tocz=0
 EndIf
End Function

'*************************************************************************
' CC1101 SPI functions
'*************************************************************************
Function RSSI(val)
If val>=128 Then RSSI=((val-256)/2)-74
If val<128 Then RSSI=(val/2)-74
End Function

Sub SPI_setup()
' SPI port setup
  SetPin 9,din        ' GDO0 = D08
  SetPin 10,din       ' GDO2 = D09
  SetPin 11,dout      ' CS   = D10
  SetPin 12,spi1_mosi ' SI   = D11
  SetPin 13,spi1_miso ' SO   = D12
  SetPin 14,spi1_sck  ' SCLK = D13
  SetPin 15,dout      ' led  = D14
  SetPin 23,din
  SPI OPEN 1,h,0
End Sub

Sub spiWriteReg(addr,val)
  Local sp
  Pin(11)=0
  sp=SPI(1,addr)
  sp=SPI(1,val)
  Pin(11)=1
End Sub

Function spiReadReg(addr)
  Local sp
  Pin(11)=0
  sp=SPI(1,addr)
  spiReadReg=SPI(1,0)
  Pin(11)=1
End Function

Sub cc1101_setup()
spiWriteReg(&h30,&h00) 'command SRX
spiWriteReg(&h0b,&h0b) 'FSCTRL1(0x0B)=0x0B
spiWriteReg(&h0C,&h00) 'FSCTRL0(0x0C)=0x00
spiWriteReg(&h0D,&h10) 'FREQ2(0x0D)=0x10
spiWriteReg(&h0E,&h10) 'FREQ1(0x0E)=0xA7
spiWriteReg(&h0F,&h62) 'FREQ2(0x0F)=0x62
spiWriteReg(&h10,&h2D) 'MDMCFG4(0x10)=0x2D
spiWriteReg(&h11,&h3B) 'MDMCFG3(0x11)=0x3B
spiWriteReg(&h12,&h73) 'MDMCFG2(0x12)=0x73
spiWriteReg(&h13,&h22) 'MDMCFG1(0x13)=0x22
spiWriteReg(&h14,&hF8) 'MDMCFG0(0x14)=0xF8
spiWriteReg(&h0A,&h00) 'CHANNR(0x0A)=0x00
spiWriteReg(&h15,&h00) 'DEVIANT(0x15)=0x00
spiWriteReg(&h21,&hB6) 'FREND1(0x21)=0xB6
spiWriteReg(&h22,&h10) 'FREND0(0x22)=0x10
spiWriteReg(&h18,&h18) 'MCSM0(0x18)=0x18
spiWriteReg(&h19,&h1D) 'FOCCFG(0x19)=0x1D
spiWriteReg(&h1A,&h1C) 'BSCFG(0x1A)=0x1C
spiWriteReg(&h1B,&hC7) 'AGCCTRL2(0x1B)=0xC7
spiWriteReg(&h1C,&h00) 'AGCCTRL1(0x1C)=0x00
spiWriteReg(&h1D,&hB2) 'AGCCTRL0(0x1D)=0xB2
spiWriteReg(&h23,&hEA) 'FSCAL3(0x23)=0xEA
spiWriteReg(&h24,&h0A) 'FSCAL2(0x24)=0x0A
spiWriteReg(&h25,&h00) 'FSCAL1(0x25)=0x00
spiWriteReg(&h26,&h11) 'FSCAL0(0x26)=0x11
spiWriteReg(&h29,&h59) 'FTEST(0x29)=0x59
spiWriteReg(&h2C,&h88) 'TEST2(0x2C)=0x88
spiWriteReg(&h2D,&h31) 'TEST1(0x2D)=0x31
spiWriteReg(&h2E,&h0B) 'TEST0(0x2E)=0x0B
spiWriteReg(&h00,&h0B) 'IOCFG2(0x00)=0x0B
spiWriteReg(&h02,&h06) 'IOCFG0(0x00)=0x06
spiWriteReg(&h07,&h04) 'PKTCTRL1(0x07)=0x04
spiWriteReg(&h08,&h05) 'PKTCTRL0(0x08)=0x05
spiWriteReg(&h09,&h00) 'ADDR(0x09)=0x00
spiWriteReg(&h06,&hFF) 'PKTCTRL1(0x06)=0xFF

spiWriteReg(&h31,&h00) 'command SFCTXON
spiWriteReg(&h34,&h00) 'command SRX

End Sub



Any suggestions ?

Regards



Edited by phantomnet on 27 September 2015 at 9:24pm
Back to Top View phantomnet's Profile Search for other posts by phantomnet
 


<< Prev Page of 10 Next >>
In the news...
 
Post ReplyPost New Topic
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.8
Copyright ©2001-2004 Web Wiz Guide

This page was generated in 0.0938 seconds.
Privacy Policy     Process times : 0, 0.02, 0, 0.08