Giter Site home page Giter Site logo

basestation-ex's People

Contributors

atanisoft avatar dccplusplus avatar frightrisk avatar kcsmith0708 avatar ldribin avatar nickbaker avatar steezeman avatar unwashed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

basestation-ex's Issues

How to handle current sense for reading and writing CVs in packetRegsiter.cpp?

When I was changing all my current code to deal with milliamps (but also keeping the raw pin reading) I saw that this code separately handles reading the current sense pin. Reading a CV, for example:

fills 8 registers by:
taking ACK_BASE_COUNT number of readings
averages them
sends 3 reset packets, 5 verify packets and 6 idle packets (In DCC++ classic, the last one was 1 reset)
takes ACK_SAMPLE_COUNT number of readings
subtract the base reading to get the difference
smooths it
then sees if that value is greater than our ACK_SAMPLE Threshold
If so, the decoder sent a current spike acknowledge, then does a bWrite

then repeats this all again to verify and at the end, we added one more reset packet

  1. Does that look good now? Who can test?

  2. How does this handle different motor controllers? If current sense device reports a different number of amps per millivolts on that pin, Don't the variables have to be tweaked experimentally for each board??

  3. If I change this to actual current in milliamps, would that make the math better or worse? With pin values can be 11 or 12 for a BTS7960B at 5 Amps (I think). But we know the Uno is 300 means about 890mA. And we know programming needs to be 250ma or less or we are supposed to throw an overcurrent condition. Regardless of max current, we are always looking for a difference of some amount. What is that amount? And again, does that mean a table for every board?

  4. Last, what about stay alive caps? Is DCC++ designed so that there is voltage on the track so the caps are charged or does it only pulse during the small time something is sent to the loco? That would mean we have to account for caps blocking us sensing the pulse since they may filter it.

Missing Arduino sketch file

README.md mentions a sketch file that is missing

To utilize this sketch, simply download a zip file of this repository and open the file DCCpp_Uno.ino within the DCCpp_Uno folder using your Arduino IDE.

Ticket Submit via Web #40 - Greg Kaye - AU

Sent by ([email protected]). Created by fire.


Greg created a ticket

Name: GregKaye

Email: [email protected]

Timezone: 10

Software: EXInstaller

Version: 1.0

Title: Brand new mega arrive today and cant finf the com port

Description: Hi I have a brand new Arduino mega 2560 that arrive today i have tried to use the n installer and it will not find my com port if i use Arduino IDE it finds the com port . I have previously had issues with dcc++ and jmri working for a few minutes then timing out so i bought a new Arduino Motor Shield Genuine (cost AUD $41 ) as i am in Australia and haven't been able to buy deek robot motor Shield and a clone mega 2560 as a genuine are ($80aud ) and due to COVID it is very hard to find stock and delivery times are 4 + weeks or more So i decided to buy new Clone mega and new motor shield so i know that they should be working and after listening to Toms Trains and things about dcc++ ex and the interview with one of the developers a couple of days ago . i thought it was time to ask for some help . . Has any body had issue with the new software not finding the com port ??

Remaining email Quota: 73


Attachments:

  1. installer.jpg

PROG track interaction is not NMRA compliant

Currently the PROG track sends the CV read/write and immediately sends a decoder reset packet before checking for decoder ACK. It should send the CV read/write command and only send the reset packet AFTER processing any decoder ACK responses.

Current Max in motor board setup rather than global

I would like to calibrate current sample max to be defined in each supported motor shield. ultimately being selectable for the high power motor shields would be nice as well, something like 3A, 5A,or 10A for the BTS7960 for instance but at least getting the right levels in for a default without user having to go change the code. If could choose in Amps rather than 0-1023 would be desirable as well.

Large DCC packets support

Hello all,

I was directed to this GIT from a comment made on the old Site DCC++. There is a dialog that explains a bit more.

There are DCC packets of up to ten bytes of data. For example the CV XPOM command which you can find in the RCN214 spec of the RailCommunity. The original code does not handle such large packets. I have adapted the "loadDccPacket" routine to generate the bit stream. If there is interest to include it, just let me know.

DCC++ is just great for starting digital model railroading!!!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.