Recent Posts

Pages: 1 ... 8 9 [10]
I've seen a couple similar questions, but nothing I have found so far has worked.

For this part of code:

#include "hidescriptorparser.h"

const char * ReportDescParserBase::usagePageTitles0[]   PROGMEM =
   pstrUsagePageGenericDesktopControls   ,
   pstrUsagePageSimulationControls      ,
   pstrUsagePageVRControls            ,
   pstrUsagePageSportControls         ,
   pstrUsagePageGameControls         ,
   pstrUsagePageGenericDeviceControls   ,
   pstrUsagePageKeyboardKeypad         ,
   pstrUsagePageLEDs               ,
   pstrUsagePageButton               ,
   pstrUsagePageOrdinal            ,   
   pstrUsagePageTelephone            ,
   pstrUsagePageConsumer            ,
   pstrUsagePageDigitizer            ,
   pstrUsagePagePID               ,

I'm getting the error:
error: variable 'ReportDescParserBase::usagePageTitles0' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 const char * ReportDescParserBase::usagePageTitles0[] PROGMEM =

Some of the other things I've seen has said that you have to do

const char const *

at the beginning, but I haven't had any luck with that either. Any ideas?
Hardware / Re: Modulo Bluetooth master o ...
Last post by Clash230 - Today at 10:08 pm
Mi dispiace che la cosa ti dia voglio essere sicuro dibquello che faccio...ti allego le pagine dove ho visto quello che ti dice vo piu una dove é espresso il tuo metodo...

L ultimo sarebbe come dici per favore mi dai un parere un po su tutti e 4 e la chiudiamo qua a meno che qualche altro esperto non intervenga.
Arduino Zero / Re: Arduino Zero - accessing r...
Last post by whitlow - Today at 10:07 pm
Thanks MartinL! 

Adding the following line to the setup() function in the sketch in my post: http://forum.arduino/index.php?topic=339470.msg2422343#msg2422343  solved the problem of writing to the AC registers.  :)

  REG_PM_APBCMASK |= PM_APBCMASK_AC;        // Set the AC bit in the APBCMASK register

Now I can use this piece of valuable information to develop interrupt triggers based on the two ACs in the M0 PRO/Zero.

Harry J. Whitlow
Last post by mattia99 - Today at 10:07 pm
Scusa ho fatto casino con le foto.
Français / Re: Mesure d'une distance avec...
Last post by Christian_R - Today at 10:06 pm
A 50cm de distance c'est pas gagné, le capteur hall fonctionne bien de 1 mm  à 20 mm environ.
Tu es obligé d'utiliser un champ magnétique ?
The difference between writing multiple bytes at once versus multiple bytes one at a time is small. But one thing to consider is that the code is in a dedicated loop reading the GPS data. If the SD card buffer fills in the middle of that a write to the physical card will take place. Occasionally SD card writes have a longer than typical latency. That could result in the SoftwareSerial buffer overflowing.

Yes. I recommended discarding all software serial readings up to the new line, then buffer the whole sentence that comes next. This way you don't lose a byte, but you lose a whole sentence (it might be ok for the project).
Yes, Atmega328P-PU and Atmega328P-AU both have same device signature - only difference is the plastic package and the metal legs that come out.
If you have SCK, MISO, MOSI, Reset, Power, Gnd connected correctly, the programmer can't tell and doesn't care which physical package you have.
Project Guidance / Re: 5v incandescent bulbs: tra...
Last post by DVDdoug - Today at 10:05 pm
How much current to they need?   Each Arduino output is good for 40ma ("absolute maximum").  And, you shouldn't run a total of more than 200mA total directly from the I/O pins.

If you are driving several lamps, a driver chip such as the ULN2803 might be easier and save some space.
Project Guidance / Re: Reading voltage
Last post by Wawa - Today at 10:05 pm
Yes I did weedpharma.  They show 2 resistors between the + and - terminals.  The issue is, I have a + and - terminal from my battery but I also have to connect it to my arduino.  That is where my confusion lies. Vout in the divider would be my out to my analog pin?
And -battery to Arduino ground.

A 2-resistor voltage divider chops the battery voltage in two.
Part of the battery voltage is across each resistor.
How much across each resistor depends on the resistor ratio.
You use the voltage across the lower resistor, so -batt (ground) and tap (analogue in).

A voltage divider is only needed when the battery voltage is higher than Arduino can handle (5volt on a 5volt Arduino).
A single cell LiPo (~3.7volt) can be measured directly.

A bit of caution there...
Wise to use a 10k resistor between battery+ and pin.
That protects the pin if you're doing something wrong, like forgetiong to turn the Arduino on first.
You may have heard of "phantom powering".

Start with a few of the simple examples that come with the Arduino IDE, like Blink Without Delay, and make sure you understand everything in the example before beginning a motor control project.

Of course, you will also need to have a reasonable understanding of the C programming language, (better, C++).
Pages: 1 ... 8 9 [10]