Search found 6 matches

by DrScanlon
Tue Jun 04, 2019 3:43 pm
Forum: General Discussion
Topic: 2d Array and pointers
Replies: 2
Views: 166

Re: 2d Array and pointers

I'm assuming C code. Something like the following should work: int arr[][2]={{11,12},{21,22},{31,32},{41,42},{51,52}}; int i,m,n,*j; // m=5; // n=2; // show(arr,m,n); void show (int *b,int l,int p) { int i,j; printf("show \n"); for(i=0;i<l;i++){ printf("%d %d \n",*(b+i*2+0),*(b+i*2+1)); } } void mai...
by DrScanlon
Sat Dec 08, 2018 5:41 pm
Forum: General Discussion
Topic: What would you like to see in The Next Chip?
Replies: 296
Views: 80908

Re: What would you like to see in The Next Chip?

Programmable sample time on the ADC.
by DrScanlon
Fri Oct 13, 2017 2:05 pm
Forum: General Discussion
Topic: VCC measurement with ADC via GPIO39
Replies: 4
Views: 4289

Re: VCC measurement with ADC via GPIO39

I'm not sure what is going on with the forum. I attempted to post a reply previously and I got logged out. About your measurement, I did a test using GPIO39 (ADC1 Channel 3) and found that 3.14vdc input resulted in 4095 counts. I decreased the voltage and saw a corresponding decrease in the AD count...
by DrScanlon
Fri Oct 13, 2017 12:19 am
Forum: General Discussion
Topic: VCC measurement with ADC via GPIO39
Replies: 4
Views: 4289

Re: VCC measurement with ADC via GPIO39

Hello, I just ran a test with ADC1_3. I used voltage ranges from 0 to 3.2vdc for input. Just for a quick test, I used the common power supply ground for the analog ground. I read 4095 counts at approx 3.14vdc. If I decrease the voltage, I see an expected drop in the counts. It appears to be function...
by DrScanlon
Wed Mar 29, 2017 8:44 pm
Forum: Hardware
Topic: ADC is very noisy
Replies: 0
Views: 1314

ADC is very noisy

I'm testing the adc1 for use in an application. With the 2V scale attenuation and using a 1.6 volt battery at the input, the average readings are about 860 or so. I'm aware of some linearity problems, but the main issue is that the readings from 660 to about 990. I am using the following code snippe...
by DrScanlon
Tue Oct 04, 2016 8:54 pm
Forum: General Discussion
Topic: ESP32 and ESP8266 freely downloadable book
Replies: 12
Views: 18153

Re: ESP32 and ESP8266 freely downloadable book

I have this book and just received the recently updated copy. As a pure newbie in the land of ESPXXX, I find the book invaluable. My one suggestion would be to make the ESP32 subject matter a completely different book or a separate (segregated) part in the existing work. I think that would make it m...

Go to advanced search