Search found 11 matches

by airforcejeesh
Fri Jun 05, 2015 2:22 am
Forum: Flowcode V5
Topic: Programming I2C Digital Compass
Replies: 12
Views: 12982

Re: Programming I2C Digital Compass

I've used a Taylor series to approximate an atan() equation while keeping the rest of Billduck's template*. However, my compass still doesn't seem to work. Can anyone find an error with it?

I had to break the code to a very simple form down to save file space (e.g., using one long equation instead ...
by airforcejeesh
Sun May 31, 2015 12:24 am
Forum: Flowcode V5
Topic: Programming I2C Digital Compass
Replies: 12
Views: 12982

Re: Programming I2C Digital Compass

Billduck, I'm trying to transfer your program to Flowcode 5.

Does anyone know how to process atan() without the numeric function built-in? It doesn't seem to be in Flowcode 5.
by airforcejeesh
Fri Apr 24, 2015 4:45 pm
Forum: Flowcode V5
Topic: Programming Temperature Sensor in I2C
Replies: 4
Views: 5942

Re: Programming Temperature Sensor in I2C

Thank you for responding.

I'm with you so far, but how do I get the two read bytes (MSB & LSB) to equal one variable (my temperature)?

Also, how did you learn that the address was 0x90? I don't see it in the datasheet.
by airforcejeesh
Fri Apr 24, 2015 3:59 pm
Forum: Flowcode V5
Topic: Programming Temperature Sensor in I2C
Replies: 4
Views: 5942

Re: Programming Temperature Sensor in I2C

Any help would be much appreciated.
by airforcejeesh
Mon Apr 13, 2015 12:26 am
Forum: Flowcode V5
Topic: Programming Temperature Sensor in I2C
Replies: 4
Views: 5942

Programming Temperature Sensor in I2C

I am trying to program an ADT7410, a 16-bit temperature sensor, on a PIC16F887. Unfortnatly, the datasheet is vague to me and I haven't found any good guides our libraries.

(Datasheet: http://www.analog.com/media/en/technical-documentation/data-sheets/ADT7410.pdf )

I am pretty sure the first set ...
by airforcejeesh
Tue Jan 13, 2015 3:36 pm
Forum: Flowcode V5
Topic: Programming I2C Digital Compass
Replies: 12
Views: 12982

Re: Programming I2C Digital Compass

Thank you very much Benj. It works great. I can take it from here.

BTW, what does adding a period before a variable do? I see it in your code a few times but I can't find that on any of the command lists online.
by airforcejeesh
Tue Jan 13, 2015 4:09 am
Forum: Flowcode V5
Topic: Programming I2C Digital Compass
Replies: 12
Views: 12982

Re: Programming I2C Digital Compass

Benj, I worked at it more and I think I've narrowed down my problems to this :where does WriteReg go? Is it before, after, or inside ReadX()? Also, what do I fill in for its value and address perimeters? None of the obvious variations I've tried work.
by airforcejeesh
Mon Jan 12, 2015 9:49 pm
Forum: Flowcode V5
Topic: Programming I2C Digital Compass
Replies: 12
Views: 12982

Re: Programming I2C Digital Compass

Thanks for the help, Benj.

I tried your suggestion, and in the simulation, X equaled a 32-bit row of F's (I assume FlowCode always simulates sensor readings with 0xFF). I'm not sure how to use this information. My end goal is to get the compass to display a simple decimal reading on a four-digit ...
by airforcejeesh
Mon Jan 12, 2015 2:39 am
Forum: Flowcode V5
Topic: Programming I2C Digital Compass
Replies: 12
Views: 12982

Programming I2C Digital Compass

I am trying to program an HMC5883L 3-Axis Digital Compass IC** on the 16F887. There are several hurdles that I haven't figured out how to code, but it's also possible I'm not even looking in the right direction. Guidance on any step would be appriciated.

First, I don't understand how to convert the ...
by airforcejeesh
Wed Dec 31, 2014 5:14 pm
Forum: Flowcode V5
Topic: Programming 7-seg LED in I2C
Replies: 2
Views: 4476

Re: Programming 7-seg LED in I2C

Thank you very much.
by airforcejeesh
Tue Dec 30, 2014 10:56 pm
Forum: Flowcode V5
Topic: Programming 7-seg LED in I2C
Replies: 2
Views: 4476

Programming 7-seg LED in I2C

Hi,

I am trying to use a 0.56" 7-segment LED HT16K33 Backpack with Flowcode 5. Unfortunatly, it seems all the guides and libraries are for Arduino or Rasberry Pi. I am confident the wiring is sound. I just don't know how to convert their instructions into byte addresses for my component macros. I'm ...