Author |
Message |
Topic: Apds 9960 |
krolikbest
Replies: 2
Views: 3086
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Oct 24, 2018 8:03 pm Subject: Apds 9960 |
I programmed it as an gesture sensor. The goal is to guess in wich direction my hand goes and send it to the game.
Thank for comments. I hope that maybe someone will improve this code in Bascom and ... |
Topic: Apds 9960 |
krolikbest
Replies: 2
Views: 3086
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Oct 24, 2018 3:20 pm Subject: Apds 9960 |
Hello,
this time I'd like to share my code (as an attachment) relatives to gesture sensor. I focused on four directions: left, right, up, down. So far I've not done near/far gestures but having a ... |
Topic: math calculations |
krolikbest
Replies: 0
Views: 2041
|
Forum: BASCOM-AVR Unsupported versions Posted: Wed Oct 17, 2018 3:42 pm Subject: math calculations |
Hello
I have such equation - C notation
ud_ratio_first = ((u_first - d_first) * 100) / (u_first + d_first);
and would like to write the same in Bascom but somehow I ... |
Topic: APDS 9930 |
krolikbest
Replies: 1
Views: 1459
|
Forum: Share your working BASCOM-AVR code here Posted: Fri Oct 05, 2018 10:09 pm Subject: APDS 9930 |
Hello
below i attach my code for apds 9930 (light sensor/proximity sensor). Feel free to use it but no guarantee that works BTW. my device (red surfaced one) has extra pin described as a VL. I'v ... |
Topic: apds 9930 |
krolikbest
Replies: 2
Views: 367
|
Forum: BASCOM-AVR Posted: Mon Oct 01, 2018 5:44 pm Subject: apds 9930 |
Ok, I get it. After your explanation datasheet seems very clear now. As a proof attach reading id number
I2cstart
I2cwbyte Addr_w 'slave i2c addres
I2cwbyte &HB2 'CMD+type+register ... |
Topic: apds 9930 |
krolikbest
Replies: 2
Views: 367
|
Forum: BASCOM-AVR Posted: Mon Oct 01, 2018 8:19 am Subject: apds 9930 |
Hello,
I'm looking for someone who did try or still is struggling to write (in bascom of course) a program for apds 9930. It is gesture/light ambient/proximity wonderful device. So far I can read ... |
Topic: pn532 with bascom |
krolikbest
Replies: 6
Views: 557
|
Forum: BASCOM-AVR Posted: Sat Sep 08, 2018 9:04 pm Subject: pn532 with bascom |
Thanks |
Topic: pn532 with bascom |
krolikbest
Replies: 6
Views: 557
|
Forum: BASCOM-AVR Posted: Sat Sep 08, 2018 8:33 pm Subject: pn532 with bascom |
I did simply program to collect datas from pn532. Under this link https://www.youtube.com/watch?v=vNiot0elisQ you may see it.
Regards |
Topic: pn532 with bascom |
krolikbest
Replies: 6
Views: 557
|
Forum: BASCOM-AVR Posted: Sun Sep 02, 2018 10:00 am Subject: pn532 with bascom |
Hi,
It shames me to say, but I do not want to think about it. The point is (from a pn532 manual):
- LEN 1 byte indicating the number of bytes in the data field
(TFI and PD0 to PDn),
- LCS 1 ... |
Topic: pn532 with bascom |
krolikbest
Replies: 6
Views: 557
|
Forum: BASCOM-AVR Posted: Sat Sep 01, 2018 7:22 pm Subject: pn532 with bascom |
I did today reading rf-cards in pn532, here the link
$regfile = "m328pdef.dat"
$crystal = 16000000
$baud = 115200 ' use baud rate
$hwstack = ... |
Topic: card reader |
krolikbest
Replies: 12
Views: 798
|
Forum: BASCOM-AVR Posted: Tue Aug 28, 2018 1:33 pm Subject: card reader |
Hello,
I think that you should send an array of bytes, instead of string. Look below:
printbin array_of_bytes(1), N
where you start from 1-st byte and N is cout of bytes. Array might look lik ... |
Topic: rfid pn532 |
krolikbest
Replies: 3
Views: 873
|
Forum: BASCOM-AVR Posted: Mon Aug 27, 2018 8:21 pm Subject: rfid pn532 |
So i attach working code for reading "version info" from pn532 in i2c mode. Maybe someone use it ..
$regfile = "m328pdef.dat"
$crystal = 16000000
$baud = 115200 ... |
Topic: uart and high baud |
krolikbest
Replies: 0
Views: 691
|
Forum: BASCOM-AVR Posted: Mon Aug 27, 2018 6:57 pm Subject: uart and high baud |
Hello
I do some communication between ardunio uno and pm532 (rfid) via UART. With uno is connected also lcd 4*40 i2c. I attach my code, maybe it will be useful for someone. So far i did only readin ... |
Topic: rfid pn532 |
krolikbest
Replies: 3
Views: 873
|
Forum: BASCOM-AVR Posted: Sat Aug 25, 2018 1:55 pm Subject: rfid pn532 |
Hello,
I know from datasheet that pn532 has an address &H48. I also have it proven by i2c scanner.
So I thought that simply frame may look like:
asking:
-i2c address
-function
respon ... |
Topic: rfid pn532 |
krolikbest
Replies: 3
Views: 873
|
Forum: BASCOM-AVR Posted: Tue Aug 21, 2018 9:23 am Subject: rfid pn532 |
Hello,
i\'m during bulding my project where need to use RFID/NFC PN532 13,56MHz I2C/SPI. I\'ve ordered one to test but meantime would like to learn about how to program it basing on i2c. I\'ve read ... |
|