Happy to be wrong but I fear you cannot do a hard reset on that series of alpha displays. You need to cycle Vcc.
Type: Posts; User: towlerg
Happy to be wrong but I fear you cannot do a hard reset on that series of alpha displays. You need to cycle Vcc.
Ditto. Perhaps you could put a permanent link on the forum home page?
My understanding was the if you are doing High voltage programing then PGM becomes normal io. I also think (and may well be wrong) that the Pickit provides the equivalent of the clock, so xtal or rc...
+1 for Everything, its fast (reads underling NTFS directory tables) and free, first thing I install on a PC.
I just checked and I don't think there is any assembler in the INC file? Did I miss something?
Getting rid of dongles can only make the product, name apparently in doubt, more attractive. I for one detest the little usb port using, useless pieces of pointlessness.
Colin, the demo, I2CPrintHardCommand_SerEx.bas (what a pompous title for simple program) compiles under 3.7.3.9 What version are you using? What error message do you get? Is your main file and the...
FWIW the fuses you posted in post #7 seem to be correct for 2550. Dodgy crystal maybe, write the blink to be sure to be sure.
Of course if you used a PIC device with PPS.
John, one of the most common reasons that a USB device is not recognized is clock. You must be absolutely certain that clock is 48MHz. Create a blinky if you haven't already then post fuse config.
MC have a whole bunch of sample descriptor in the MLA. One great thing about this USB implementation (as opposed to the built-in commands) is that the descriptor format is similar to MC's own, make a...
It compiled correctly with 3.7.3.9 (except for warning re. tracking system variables in ISR).
"I guess the right way to do this is a light source on an arm, targeted at the underside of the extruder, hanging off Z". What a stupid idea, the arm would have to move, synchronized with the X axis...
Unfortunatley even a few grams (plus the LEDS) hanging on the end of X is significant. I guess the right way to do this is a light source on an arm, targeted at the underside of the extruder, hanging...
You really lucked out because I thing 90% of the learning curve for 3d printing is conquering the 2 or 3 CAD packages before you find the right one for you.
I should have said that in this application weight is at a premium.
I already have a LED strip mounted on the gantry so I'm just looking to fill in the shadow under the extruder.
@KenK What range of values of resistor would I need for 4 LEDs?
@Tim You seem to be making great progress, what CAD are you using?
Anyone using Tet should be extremely careful, that stuff is very toxic.
I'd like to have a LED attached to illuminate the nozzle on my 3d printer. To save running additional power cables, the 24v fan on the extruder heatsink is always on while printing. Is it possible?...
I think that only works with ABS.
I'm interested in producing mechanically sound parts, usually in either PETG or ABS. What is the relative strength of "resin" (what sort of resin is it anyway)?
Yes Prusa use quality parts but as I said 750$ for a kit seems like you'd have to use it a LOT. They do sometimes do odd things though, like their modified V6 which seems to be an issue.
I...
Looks like PLA or PLA (presumably not a heated bed) but at that price who cares. Really looks like a great entry level product. I think you were wise to avoid Prusa, the MK3s at $750 is an awful lot...
"20 maybe but not 200" sounds like the Big Bang equation solver app.
BTW I've got my 3d printer going nicely with a few different materials (mainly PETG and ABS), nothing fancy but it seems to...
Getting data automatically into Excel is no simple thing. I don't know how to do that, I guess something with VBA or maybe something like MegunoLink or Makerplot. Sorry mate, way out of my area. If...
A lot of strain on thro hole plating. Flexible PCB to expensive?
Strange coincidence, I saw a video on instructables https://www.instructables.com/Magnetohydrodynamic-Submarine/
Be aware that there are two versions on USB for Proton, the builtin commands USBIN, USBOUT etc. and a stand alone version that Les created from the MC version. Among other things the stand alone...
FWIW I think you've all missed the point about Arduino. @It like the old joke about a dog walking on it's hind legs, it not that he does it well, it's that he does it at all. Peeps drawn to Arduino...
What sort of drift with time can be expected with HX711? I keep meaning to sort out the filament weighting spool holder.
I'm sure I read somewhere that the temp sensor in DS3231 was rubbish, maybe I misremembered.
Purely my personal opinion but I think you're trying to do too much in the IRQ routine. Perhaps some of that work could be done in the main body in response to flags set in the IRQ? What speed are...
Can't find it now but I think my 2 cell unit has 4 wires. Seems like 2 cells ought to have 4 wires. May be wrong though.
Are you sure you have a 40kg unit?
Thanks Norm, as my speeling is so aufal I certainly am keen to try the spellchecker.
This probably doesn't help but although the part numbers are similar the parts are VERY different. 18F26K22 is a relatively modern implementation of an old school PIC device where the 18F27K42 is a...
PM'ed you (and made space in queue)
Flosi, I don't even know what a cascading style sheet is.
Lester, atleast I have ads on for this site (the only exception to my no ads rule)
How very odd that they (CCS) would waste their ad budget like that.
Hi, I'd like one but I'm in Ireland. I'm happy to pay postage up to say £15, if more let me know. PM me.
Pretty much all Pic devices (last 10 is years) allow an alternate clock which can be set really slow.
In the short term you always have the auto load function.
I no longer use PicKitPlus but when I tried it I used "-w -e -a3.3 -pPIC$target-device$ -f"$hex-filename$" -mpce -d5" (without the overall quotes but with $hex-filename$) for 3.3v
and "-w -e -a5...
+1 for Github (even though I don't understand it).
I know that it's impossible for any compiler to keep up with MC stream of conscious design process (probably should glorify it with a word that...
"does that change apply even after power cycling" AFAIK no.
The posted code is subroutine, you cut and paste it into your program.
Sorry, Pic33 much to complex for my poor head. Try the MicroChip forum.
sorry devices file at https://sourceforge.net/projects/gcbasic/files/Support%20Files/PPSTool/
PPSTool is here devices file is here. It has the option to upload latest files from MC
John's PPS tool does not cover 18F but PPS Tool (on Github and part of GCB) does. FWIW Tim I believe your RA0PPS and RA1PPS values are correct.
@basparky Just as Creality did recently.
In short, yes.
A way to get binary values to display correctly is to avoid going back and editing the page but even better is an attachment.
All that accepted, it's got to beat the shit out of Mplabx.
Personally I use Proteus for debugging algorithms and serial terminal for real hardware.
I really don't think this is the way forward, if you want a debugger, port the existing (but not working) user written debugger to the latest version of Proton. It is called P-IDC.
Good luck with MplabX, the spec and all the features looks great the implementation sucks the big one. Don't even get me started on IPE.
Evan posted earlier that if he'd changed PK2/3 firmware (which he decided not to do) he could have made it even quicker.
Perhaps I misunderstood. You posted that your test worked on the 14K20 but not on the 13K20 and I pointed out that I suspected that as the 14K20 was marginal with 768 RAM, the 13K20 would be even...
@Evan, I was referring to the way that mplabx and ipe change pk2/3 firmware at a whim (I guess there's some rule but I dumped IPE as soon as I could and mplabx sucks so hard it leaves me speechless)...
FWIW I'd agree with your choice although give how MC play fast and loose with that aspect of the PK2/PK3
Can't find a reference but I vaughly remember Les posting that 14K50 was marginal, if so 13k50 even more so (768 vs 512). Only a guess but as they share a DS it's one of the few differences.
It's great to hear PicKitPlus development continues and I would defiantly have got it if I hadn't previously found NSDSP, using LVP this thing is so damn fast, sometimes I do a (redundant) verify...
Yea, it's neat isn't it, the quys who wrote it showed up MicroChip.
Of course if you use the MSSP directly you have many selectable clock sources but I doubt if you can go that slow. Anyway I see your using 22 bit so forget my post.
I seem to remember you could buy 3.3v 16x2 alpha modules.
Edit In fact I have one if you want to borrow till you can source one.
The problem with the backpacks you can buy is that there is so...
The CH340 is found in pretty much anything where the budget is too tight for FTDI. eg Arduino clones
Why not dedicate a PIC device to reading the encoder and sending the result on demand?
As I posted previously, if you use the format
you will need to change the appropriate property in Proteus.
Your problem with I2C address is pretty clear in the source I provided
The address $0E is described as part address because the full address is made up of the logic level of A0,A1 and A2 and the...
I as sooo over breadboard, it is just so unreliable. Probably my own fault cause I used to buy the cheapest which suck even harder than decent ones. I built a couple of boards with the i/o brought...
Even if you rehash Wiki entries into a consistent format. There is so much good stuff in there that is inaccessible to the new Proton user (if only the hassle of porting from whatever to whatever).
...
I wrote some code that used the cheapo alpha LCD I2C backpack, it's may be in Wiki, called something like "Replace Print command ...........". The code uses PCF8574 or PCF8574A.
Proteus does not model the oscillator, it just uses whatever speed you enter into the properties for the PIC device in the field Processor Clock Frequency. It is obviously vital the the value you...
Did you tell Proteus you were using a 4 MHz crystal?
Does AddressOf (AKA VarPtr) help?
Me too (prepay that is). To repeat myself, I think this is a great step forward for Proton and hopefully for you, Les. Do you have a notional list of libraries?
Edit. If you create a format for...
Great news. I really feel this the way forward in Arduino etc. world. The mas of peeps just want it to work, and who's to say thats wrong? It'll really show just how naff the Auduino compiler is.
...
Why not just use Mikrobasic for everything? BTW if it's not obvious thats a rhetorical question.
This has been voted understatement of the year 2020 (so far, but we doubt if it will be beat)
I don't want to get into this back and forth but if you want a composite device, there is a descriptor mechanism to create one.
BTW unless you intend to port the code from the MLA, Proton does not...
Some code might help somebody help you.
Weather thats possible or not I don't know but for fault finding it's good to be able to match Proc with an EndProc
Is that a typo? they cost £150 a pop!
Assuming that A7 already works, try INTIO67.
You need to monitor USB 5v with a GPIO.
In both cases 5v will not be present on USB input. It simplifies things if you power your project from USB.
I haven't looked at your last post yet but can you confirm that by "when the usb connection is lost" you mean the USB cable is removed?
I may be wrong but I though it was a combination of the...
I have one of these modules but the ony text on the display is KYX-3462BS. The text on the PCB is "4-bit LED Digital Tube Module", I got it on ebay via the slow boat.
Not sure I can answer your exact question but to reset you can execute the assembler mnemonic RESET. Generally the code for a USB HID device will loop forever on losing attach. Something like -
@Kuhrig. To confirm I understand your code correctly, PIC will come out of sleep if a button is pressed or 1 minute timeout?
Please could you repost your code (binary values) and don't...
Another example might be where a battery power key fob used sleep to save power and a irq from a bunch of key depression ioc's
I find that if I post code with binary data and don't subsequently edit it, it displays ok. I'd like to try you code, perhaps you could repost?
@johngb I wish I could unfortunately my brain is far too small, I find even the newer 18F's ie 18F27K42 much to complicated, the ADC alone is enough to cause considerable hair lose.
@kuhrig In my opinion arrays on 16F and to a certain extent all PIC devices are severely complicated by the segmented nature of paged RAM. Personally I would use an intermediary variable, you only...
I guess you need to post code.
Sweet, thanks for the info.
It's not a matter of if the clock is running rather that the actual clock is the same as the declared XTAL. To be sure create a blinky 500ms on, 500ms off then start a stopwatch and count to 60.
I...
You can see a list of system variables in the .LST file. look for COMPILER SYSTEM VARIABLES
Has the K40 got slew? Other than that I can't see why bit banged I2C wouldn't work across pretty much any PIC device UNLESS the actual clock is not the same as the declared clock. I see you have a...
If Les wrote libs especially for the k40 I sure he did it for a reason, have you tried them?
Unfortunately your LA pic is to small to see anything other than the fact that your getting something,...
Oh, youtube is my downfall, after 2 hours of hooping from one piece of nonsense to the next, couple of billion years of evolve an eye and I waste it on that.
Bug in board software. If you refrain from editing binary representation comes out OK.
Not specified in the manual but personally I would even use a signed variable.
Oh sweet and adorable jesus no, the very last thing.
This thread is the source of nightmares, locked in 24/7 with my ex, horrible.
If you want accurate time nothing beats GPS. The Blox modules are cheap as chips.
Only as good as the clock.
If you want real inefficiency. I sometimes use an Arduino as a quick check that may latest super cheap dohicky actually works. Just to check the Arduino was working I ran the blinky, over 900...
I don't understand.
You're kidding right? More variants of Linux than something with a lot of variants.
Wheras I run Win 7 and make it look and feel like Win98, which I guess makes a even more of a curmudgeon than Les.
Think about it like this -
Compiler preprocessor commands are compile time variable and constants (Symbol) are run time.
If you use Symbol for constants and preprocessor for code block...
"Then will be a problem to be able to clean up the caused mess."
If a DLL already exists install programs usually ask if you want to overwrite.
Just a guess but comments with Defines can be problematic.
I beleive that Define is text substitution so in
$define MAXRPM 3000 ' Value to limit the maximum rotation speed
is...
"Iceland is not a cold place" I suspect I inadvertently touched a nerve. It's -1 in Reykjavík and 9 here.
I would not describe 8X (or even 2X) as a small difference, or perhaps I've misunderstood...
I've tried Linux a few times but it's just to hard, for me an OS is a tool not an end in it's self. The fact that an app needs a separate installer kills it for me. Now, if all you Linux people could...
The only reason I wrote an additional program was because I wanted to include info that was not available at compile time ie compiler version.
Do a search for idlocs and you find code.
Edit....
I count myself in the list of Microsoft detractors but one thing you have to give them credit for is the long view, they gave away Win10 for free (which BTW is what it's worth).
If they'd just...
More good stuff from a cold place. Did you manage to put a figure (a percentage I guess) on the speed improvement?
There was a thread to that effect. Somebody posted code to use that area but in the end Microchips sketchy implementation (they don't even use the same name for the feature) across the range limited...
For me it's not the technology (which is mediocre at best) but the sheer neck of the nonsense statements they make in an attempt to cover up poor design.
Not quite what you're looking for but it may help. A proc that reads Vcc on 18F27K40. I've forgotten the source of the comments but I suspect from the errata.
...
Why would anybody buy anything, let alone pay a premium. After the "you're not holding the phone correctly" nonsense now we have -
>>> Apple to Pay Price for Purposely Slowing iPhones
Apple...
The code to the PCF8574 simply duplicates the standard Print code so should work on any PIC device. Beware some backpacks uses PCF8574A and different bit orders.
Note there are two versions...
@mjturner Thanks very much for the excellent code for RC522. I'm trying to port to 18F25K50 and curious why you used the SPI hardware directly and not thro one of the SPI commands ie SHIN/SHOUT?
The only difference between the two versions provided is method of generating I2C either bit bang or MSSP.
@Joe I have similar to your s-l16004.jpg 4 wires, apparently 2 loadcells and different legend on ADC board.
@Joe what colour wires do you have from the load cells and how are they connected?
I guess thats a matter of opinion, I don't believe that clocked serial data without CS is SPI. Certainly no SPI command (in any language) is going to work on this.
Re. you enquiry, surely there...
@Charlie No, according to the datasheet its serial data clocked out of the adc. I think I've got the bridge wired wrong. Maybe I'll give up on this controller and get one that labelled sensibly,...
I've just got the hardware (slow boat from china) and I think I may have bought the wrong thing. The aluminum block with the load cells on two opposite side seems to be pretty standard. On the back...
nRF24L01+ is excellent if your looking for a high speed bidirectional data transfer environment with auto Ack and auto retransmit but HC-12 is just so easy and suits your requirements (except the 433...
HC-12 operates 433.4-473.0MHz not sure if that excludes it, it has 100 channels and defaults to 0. Otherwise super simple and super cheap, defaults to 9600, no problem with range, 3.3v
I wonder if there's anything here will help https://www.theengineeringprojects.com/2018/08/introduction-to-pic16f88.html
Just curious, but why are you persevering with this Pic device? I suppose you could try LVP (assuming you aint messing with RB3 (PGM)
@Maxi - are yu sure about that? its just a breakout board after all?
You do not need code, rx/tx is completely transparent.
For example a wireless GPS. HC-12 to the rx/tx on the gps, another HC-12 to a ttl to USB dongle. Fire up putty on the PC and bob's your uncle.
@David
on the register description for OSCCON, above IRCF0-2 the text R/W-0 means the register is read/write and resets to 0.
According to Les, the trick with binary display in this forum is NOT to edit after adding.
You can run ESP from Arduino IDE (as well as a tone of other boards) it's a download option.
Yes the Arduino IDE sucks but there are a zillion libraries. If you just want something to work, you...
Annex looks quite interesting but doesn't have the mass of libs that come with the Arduino ide.
I suspect with all those levels of "stuff" real time is not (to say the least) doable.
Not raining anywhere on this fair (if damp) isle and England killing it in SA.
3881
@Giuseppe Thanks for the video link, good info but the voices are so duuullllll. It appears that by luck I have genuine parts.
The thing that throws me about drones is the massive disparity in prices between machines that have (apparently) the same features.
A lot of newer PIC devices have DACs onboard.
Isn't that precisely what the poster is requesting help to achieve?
Doesn't that rather imply that it's off by default for 14-bit devices?
Proteus 8..............
Oh bugger, I did it again, I'm so dim I want to slap myself (but much to much of a baby for that,so go with eslap). I tried to run a 5v device on 3.3V.
Les, I feel for you re. Win10, personally I wouldn't touch it with yours but I guess you have no choice.
Re the SR04, I get a 2.5 - 3usec echo whatever I do.
Will the changes you make for Win...
Thanks for the info. I seem to have the same type as shown at the end if the vid.
Does anyone know how to detect (other than suck it and see) the dodgy modules?
Thanks Les, pretty sure it was your code a ripped off in the first place.
"Remember, the values read from PulseIn are dependant on the oscillator used for the microcontroller" I thought this was...
ebay for China. I seem to remember they were so cheap, that it would hardly matter if they were fakes.
I find with eBay that sellers with good feedback are VERY ken to retain it. Most will give...
Hi Craig, thanks for posting code. No go I'm afraid, I guess the either the SR04 is jiggered or I'm as dim as ... can't think of an appropriate simile.
What am I doing wrong. BTW I know its a lot of code, I use a template. The actual "write/read SR04" code is tiny.
'*********************************************************** ...
That was kindda my point. I've never seen the point of a scanning (if thats the right term ie constantly checking) AV. I run Clamwin to check any file that may be dodgy.
Stephen, I have a better workaround, don't use av's that generate false positives.
John, didn't know that but why would you do it?
assuming you dont want to use a floating point number
Dim TempC As SWord ' a signed integer
If TempC > 9999 Then
Print At 1,2," ",Dec3 TempC/100,".",Dec1 (TempC//100/10),223
ElseIf...
Try a program called Everything. I would have found those files within a few seconds. It's an invaluable tool, once you put it on one PC you'll be lost without it. Oh and by the way, it's free.
There are several bits of code for nRF24L01+, not sure if it's fast enough for your app. Very easy to use, Ack/Nak automatically plus payload with ack for two way data with pretty much zero software...
Have you tried MAPS (Microchip Advanced Parts Selector)?
One is the Proton preprocessor the other is the assembler's.
Yes it is funny. Aussie's love to be different than the "old country" (it's 999 in the UK).
A little rude to somebody who's trying to give you money.
@charlie LOVL
@John is that where the insult "you big galah" comes from.
If that's the case, roll your own bit bang then you can go as slow as you want any combination of stop, start, data and parity. You could even add a few bits and get a checksum. I'm sure you'll find...
Oops just reread your first post. Sorry can't help except that manual seems to say that any baud 0-65535 will work. Maybe try Rsin/Rsout?
It takes a while to get the docking gui elements and plugins just so. So why risk having to do it all again if uninstall uninstalls the wrong one.
So if you need the space, why not manually delete...
Thanks for everything Les.
It's not much, wish it could be more. State pension bla bla.
Is it an option to degrees the 32MHz clock?
I'm defiantly going to buy a Prusa Mini when some of the bugs have been circumented (so maybe 6 months from now). That not a problem as I have to learn 3d model making first (not making much...
Doesn't the dreadful noise and the manual bed leveling drive you crazy?
How do you bypass?
Assuming that String1 is an array
Double smug, Win7 and Waterfox
One mans "second hand" is another mans "refurbished".
I always buy refurbished laptops. You can get some fantastic deals on 2 or 3 year old, top of the line machines.
Much as I admire your fortitude and perseverance, why do you keep banging your head against Win 10?
I'm gonna stay with Win 7 till a must have app doesn't support it (not holding my breath) and...
Sorry, I made a mistake when I posted the Busin used hardware, but you obviously worked that out for yourself.
What Pic device are you using and what pins are connected to Clk and Sda?
Do you...
To be fair, it's very clear ie
BUSIN
BUSOUT
@Thetrueman Life is so much easier life if you can see what's going on, which is exactly what a logic analyser will do. You can get a clone...
Too late to edit. I see the device has registers Electronic ID, which is a good test. Do you read 0xFA from Address 0x0F and 0xFC from Address 0xC9?
Moral of the story, don't trust to defaults you don't understand, explicitly state fuses, I2C hardware pins etc. etc. It make code much more comprehensible.
BTW You can put fuses anywhere in you...
What CONTROL ADDRESS did I2C scanner give?
There really is no point in proceeding until you are absolutely sure you have the correct CONTROL address (including any optional parts).
BTW I should...
Just got two HC-12's from China and they worked first time. I don't think I've ever had anything work first time.
No muss no fuss, default to 9600 8 1s with SET pin floating.
TTL level GPS to...
This has been said before but this really is a cool project.
Using the terminology of Busin - CONTROL is the address of your device on the I2C bus. ADDRESS is one of several registers on the device.
Personally I've always thought that was backwards but what...
Could you elaborate. Usually a HEX file will contain the binary (in Intel format) of your compiled source.
Are you asking if you can use a 16F18326 but tell the compiler it's a 16F18323? AFAIK if...
Wow, pretty harsh mate!
I understand that the process of creating config files is automated using mc's own files (which on release are often wrong).
There's some nice looking code on the dark side (PBP) seems like you have to differenciate between day and date alarms (don't know if you're already doing that). So I guess you need to write 4 bytes...
google for "IOT display data". there are a whole bunch of sites that let you create a webpage with your real time (wink) data. Just to get you started...
Les, you obviously have seen this board before, odd that both SPI and I2C appear to be brought out to the 8 pin connector.
Ages ago I got one of these RFID modules
3831
it would appear to have SPI, I2C and async. Does anybody know how to select the interface?
From a position of blissful ignorance I would have thought the added complication of .net could only make the task easier.
id it just me or has the order of posts within a thread been reversed? Newest post at the top.
I think I get it. The location is intentional? Set by
which I guess are XY coordinates?
You really have made a very sweet demo.
@Flosi. I ran your fine ILI9341 code and demo but on a 18F25K50, it worked fine except on the menu demo the battery icon was displayed in two parts toward the bottom of the display. Any idea what dim...
Ain't that the truth!
I see on eBay there are cheap ILI9341 modules populated with the touch IC. They come with a stylus, which makes me wonder if they only work with the stylus and not the mk I finger? Anybody have...