Author |
Message |
Topic: Token concatenation in #define statement containing the (.) |
logicchild
Replies: 6
Views: 10046
|
Forum: General CCS C Discussion Posted: Mon Jan 13, 2014 3:00 am Subject: It is How to |
Hi,
Thanks for the reply.
The idea is that I want to concatenate the token that contains the (.) period char. regardless of what language that I use! |
Topic: Token concatenation in #define statement containing the (.) |
logicchild
Replies: 6
Views: 10046
|
Forum: General CCS C Discussion Posted: Sun Jan 12, 2014 10:31 am Subject: Token concatenation in #define statement containing the (.) |
Hi,
I want to write a macro that performs the following:
#define PORT_PIN(__x,__y) __x##.F##__y
so, when calling it with:
#define LEDS PORTB
#define LED1 0
PORT_PIN(LED ... |
Topic: HM2007P: Voice Recognition |
logicchild
Replies: 2
Views: 4909
|
Forum: General CCS C Discussion Posted: Thu Jan 09, 2014 7:38 am Subject: HM2007P: Voice Recognition |
Hi,
Can anyone help me how to connect this HM2007P with a PIC?
And what kind of PIC should I use (P16F877A, P18F452, P18F4550, or else)?
Thanks |
Topic: Help: Connecting OPB705 sensor with P16F877A |
logicchild
Replies: 17
Views: 23283
|
Forum: General CCS C Discussion Posted: Sun Nov 17, 2013 2:51 pm Subject: Help: Connecting OPB705 sensor with P16F877A |
Hi,
I'm currently using this schema, also I will use its analog value.
In PIC,
I made the port A as analog, and I tested it and it works, I don't want the converted digital value, I just want 0 ... |
Topic: Help: Connecting OPB705 sensor with P16F877A |
logicchild
Replies: 17
Views: 23283
|
Forum: General CCS C Discussion Posted: Sun Nov 17, 2013 2:26 pm Subject: Help: Connecting OPB705 sensor with P16F877A |
guys,
i found a solution that works for me:
http://letsmakerobots.com/files/userpics/u1518/Schematic_SMALL.jpg
but output is analog, how can I convert it to digital without using the ADC in t ... |
Topic: Help: Connecting OPB705 sensor with P16F877A |
logicchild
Replies: 17
Views: 23283
|
Forum: General CCS C Discussion Posted: Sun Nov 17, 2013 1:23 pm Subject: Help: Connecting OPB705 sensor with P16F877A |
Hi,
I've removed the LED and putting 220ohm, so 5v to 220ohm to the anode.
And measured the V between Anode to the ground which is 1.27v
is that correct? |
Topic: Help: Connecting OPB705 sensor with P16F877A |
logicchild
Replies: 17
Views: 23283
|
Forum: General CCS C Discussion Posted: Sun Nov 17, 2013 12:51 pm Subject: Help: Connecting OPB705 sensor with P16F877A |
Hi,
Thanks, but here what I have:
1. Sensor OPB705, consists of Diode, a Transistor (Emitter, Collector)
2. A 100ohm connected to 5v, and from this resistor to the anode of the LED, and the cath ... |
Topic: Help: Connecting OPB705 sensor with P16F877A |
logicchild
Replies: 17
Views: 23283
|
Forum: General CCS C Discussion Posted: Sun Nov 17, 2013 12:35 pm Subject: Help: Connecting OPB705 sensor with P16F877A |
Hi,
No, I am doing this in real, ignore the name of the components, I've used that device because it has a diode and a transistor, same as my sensor, just to show my sensor's component.
Thanks |
Topic: Help: Connecting OPB705 sensor with P16F877A |
logicchild
Replies: 17
Views: 23283
|
Forum: General CCS C Discussion Posted: Sun Nov 17, 2013 11:49 am Subject: Help: Connecting OPB705 sensor with P16F877A |
Hi again,
Sorry guys, I cannot start this sensor :(, the connection can be shown in the link below, any advice??
As seen in the schema, the Voltage from the first node of 300ohm resistor node is 3 ... |
Topic: Help: Connecting OPB705 sensor with P16F877A |
logicchild
Replies: 17
Views: 23283
|
Forum: General CCS C Discussion Posted: Sat Nov 16, 2013 12:33 pm Subject: Help: Connecting OPB705 sensor with P16F877A |
Hi, again
I connected what you've said, but it didn't work, it always return 1, I've used 300 ohm in the diode, and 10k in the collector.
is there any wrong?
I'm using OPB705,
please help ... |
Topic: Help: Connecting OPB705 sensor with P16F877A |
logicchild
Replies: 17
Views: 23283
|
Forum: General CCS C Discussion Posted: Sat Nov 16, 2013 7:45 am Subject: Help: Connecting OPB705 sensor with P16F877A |
Thank you so much, you are good, man.
Just to ensure, is that correct regarding the collector connection?
PIC
[.......]
[.......]5v------^^^(10kr)^^^-------+------[[[[[[ Collector
[.......].. ... |
Topic: Help: Connecting OPB705 sensor with P16F877A |
logicchild
Replies: 17
Views: 23283
|
Forum: General CCS C Discussion Posted: Sat Nov 16, 2013 6:36 am Subject: Nice |
Thanks, that really helps.
But, can you draw a schema showing the PIC and the sensor, I want to read the distance (not actual distance, just to know if there is an obstacle or not) from the sensor, ... |
Topic: Help: Connecting OPB705 sensor with P16F877A |
logicchild
Replies: 17
Views: 23283
|
Forum: General CCS C Discussion Posted: Sat Nov 16, 2013 5:45 am Subject: Help: Connecting OPB705 sensor with P16F877A |
Hi,
I've recently purchased a reflective sensor (OPB705),
http://eu.mouser.com/ProductDetail/Optek/OPB705/?qs=sGAEpiMZZMt82OzCyDsLFPEcoHLlYD6LCASQKEWn6nk=
and I found out that there are fou ... |
|