Search found 18 matches

by backpacker69
Thu Aug 23, 2018 10:20 pm
Forum: General
Topic: module for the HMC5883L compass
Replies: 7
Views: 6753

Re: module for the HMC5883L compass

After some searching for a sensor that is available I found a breakout board at sparkfun that has a simple code that dosen't use any adrunio library. now I need to convert to Swordfish to load into a pic. then instead of an lcd (will use opti-coupler) in final project). #include <SparkFun_MAG3110.h>...
by backpacker69
Thu Aug 23, 2018 7:05 pm
Forum: General
Topic: module for the HMC5883L compass
Replies: 7
Views: 6753

Re: module for the HMC5883L compass

the mxd2020el is no longer in production but did find several sources for a breakout board using the HMC5883L
https://www.robotshop.com/en/hmc5883l-b ... mpass.html
the A/D feature nice but?
by backpacker69
Thu Aug 23, 2018 6:49 pm
Forum: General
Topic: module for the HMC5883L compass
Replies: 7
Views: 6753

Re: module for the HMC5883L compass

found what may be a better solution https://www.memsic.com/userfiles/files/Datasheets/Accelerometer-Datasheets/MXD2020E_FRevH.pdf has PWM as well as A/D output Now to figure out how to implement. Microchip has a paper on it AN996 http://ww1.microchip.com/downloads/en/AppNotes/00996a.pdf now the fun ...
by backpacker69
Thu Aug 23, 2018 6:13 pm
Forum: General
Topic: module for the HMC5883L compass
Replies: 7
Views: 6753

Re: module for the HMC5883L compass

been looking at using the breakout board available from adafruit as well as sparkfun unless there is a better choice?
by backpacker69
Thu Aug 23, 2018 2:08 pm
Forum: General
Topic: module for the HMC5883L compass
Replies: 7
Views: 6753

module for the HMC5883L compass

Want to experiment using an electronic compass and all I find are Adriuno library stuff and one using an 18F4550 but in C.
So I guess I need to convert the C source code into Swordfish (familiar territory) but???
I figure I would inquire if anyone has dealt with an electronic compass using Swordfish?
by backpacker69
Fri Jun 16, 2017 4:07 pm
Forum: General
Topic: 18f24K40
Replies: 17
Views: 15139

Re: 18f24K40

After reviewing my plan and end product I am going back to the 18f2221
In this application there is no real advantage of using a K series pic.
Thanks for the input as I WILL be utilizing a K series pic for my Christmas project that is on the back burner
by backpacker69
Mon Jun 12, 2017 2:34 pm
Forum: General
Topic: 18f24K40
Replies: 17
Views: 15139

Re: 18f24K40

Thanks Jerry.
Will make suggested changes
by backpacker69
Mon Jun 12, 2017 12:37 am
Forum: General
Topic: 18f24K40
Replies: 17
Views: 15139

Re: 18f24K40

got the "simple" code done involving the HLVD section but got to wondering if the HLVDCON value be changed using a sub route. Is what I am contemplating is having the LOW voltage detect LED0 blink at a faster rate as the battery goes lower. In this code (haven't calibrated the pickit2 voltage but th...
by backpacker69
Sun Jun 11, 2017 8:54 pm
Forum: General
Topic: 18f24K40
Replies: 17
Views: 15139

Re: 18f24K40

Looks like a slight change in part number. Instead of the 18f24K22 going with the 18f24K20. Cheaper at mouser for 10 units plus I happen to have several of these puppies on hand.
Onward to locating white leds and writing code to include the HLVD
by backpacker69
Sun Jun 11, 2017 5:47 pm
Forum: General
Topic: 18f24K40
Replies: 17
Views: 15139

Re: 18f24K40

Thanks, I thought I didn't have the INCLUDE modules in the right folder but after looking at your example I see my mistake. Now to order the 10 chips SMD and one in a dip for testing my code for proper functioning HLVD etc. was slightly worried why it wouldn't compile. Need to make some changes to t...
by backpacker69
Sun Jun 11, 2017 12:44 pm
Forum: General
Topic: 18f24K40
Replies: 17
Views: 15139

Re: 18f24K40

now I an't get it to compile. I screwed something up?? DEVICE = 18F24K22 CLOCK = 8 '8MHz CONFIG FOSC = INTIO7 'internal oscillator OSCCON = %01011100 ' how fast to run #option SWORDFISH_SE = true INCLUDE "SetDigitalIO.bas" INCLUDE "Utils.bas" DIM led AS PORT b.0 WHILE true led = 1 DELAYMS(1000) TOGG...
by backpacker69
Sun Jun 11, 2017 12:17 pm
Forum: General
Topic: 18f24K40
Replies: 17
Views: 15139

Re: 18f24K40

Thanks guys, the link that bitfogav posted a link to shed some light on what and why my project using a K pic seems slow. Will go back and review what I have as well as the setalldigital.bas. Yes the setalldigital was from Diy. but looking over the code it has the 24K22 // 18FxxK20 family (no LF ver...
by backpacker69
Sat Jun 10, 2017 8:04 pm
Forum: General
Topic: 18f24K40
Replies: 17
Views: 15139

Re: 18f24K40

It pays to shop
the 18f24K22 at Mouser = $2.50 Digi-key = $2.14
now just need to order and write code for it. Maybe the SetDigitalIO.bas module will work better??
by backpacker69
Sat Jun 10, 2017 7:14 pm
Forum: General
Topic: 18f24K40
Replies: 17
Views: 15139

Re: 18f24K40

Thanks Jerry I have several 18f24K22 that work but seem slow. Why I have no idea. Checked the osscilator setting etc. he nly way I can get it running half way decent is to use INTOSC8.bas. The InternalOscillator.bas won't work, or at least I don't see the device listed in the module. Will proceed wi...
by backpacker69
Sat Jun 10, 2017 2:20 pm
Forum: General
Topic: 18f24K40
Replies: 17
Views: 15139

18f24K40

this is a new chip?? but can SF / pickit2 even deal with it. I see no modules etc such as setalldigital. Am I digging a hole and no way out. This pic for cost is only $1.50 from Mouser. Only reason I am considering using this pic. Might run and use the 18f2221 but?? I have no need for lots of bells ...