Search found 63 matches

by tommeyers
Sun Oct 28, 2018 2:19 pm
Forum: General Discussion
Topic: ESP32 Bluetooth SPP with bidirectional communication (send and receive)
Replies: 18
Views: 9017

Re: ESP32 Bluetooth SPP with bidirectional communication (send and receive)

This worked for me: #include "BluetoothSerial.h" //===== Preferences Manager: (hack so that I can return a preference data type) // see: https://playground.arduino.cc/Code/Struct#Creation #include "name.h" BluetoothSerial SerialBT; void setup() { //add: PreferenceAdd(preferenceName,preferenceLabel,d...
by tommeyers
Mon Oct 22, 2018 3:49 pm
Forum: ESP32 Arduino
Topic: Examples for many serials ports
Replies: 4
Views: 1274

Re: Examples for many serials ports

I explored that recently. Here is how I quickly tested them: Connected (tx+rx) to (rx+tx) then sent messages between them. The test was < 10 lines of code. I don't remember exactly but I think those 3 use a UART and one is connected to USB. I also don't remember if there are serial libraries for sof...
by tommeyers
Sun Oct 21, 2018 3:52 pm
Forum: ESP32 Arduino
Topic: Examples for many serials ports
Replies: 4
Views: 1274

Re: Examples for many serials ports

How many do you need?

Tom Meyers
by tommeyers
Thu Oct 11, 2018 4:52 pm
Forum: Hardware
Topic: ESP32 with a tons of switch
Replies: 16
Views: 2371

Re: ESP32 with a tons of switch

Don't give-up. 1) use 148 to read 7 switches 2) See below for reading more Reading More: Take a look here: https://www.embeddedrelated.com/showarticle/519.php For more than 8 buttons you can use a matrix and easily get to 64 buttons. HC138 for polling rows (0..8) while reading from am HC148 columns....
by tommeyers
Thu Oct 11, 2018 4:24 pm
Forum: Hardware
Topic: ESP32 with a tons of switch
Replies: 16
Views: 2371

Re: ESP32 with a tons of switch

Yosuke, In the diagram above it appears that the 138 is being used for 2 output purposes: 1) to send a polling signal to each of the 8 columns (of 2 switches) and combined with led0/1 to light 1 of the 16 leds (8 columns 2 rows). The switch values are presented to the long connector which chooses wh...
by tommeyers
Wed Oct 10, 2018 1:56 pm
Forum: Hardware
Topic: ESP32 with a tons of switch
Replies: 16
Views: 2371

Re: ESP32 with a tons of switch

esp sprite,thanks for jumping in. I have not used the 138 nor 148. I am curious about how just 0 button pressed and no buttons pressed will be sorted-out. Do they both return 0? The 3 bit value has 8 possible key values and the switches have 9: none,0,1,2,3,4,5,6,7,8 . Here is the TI functional diag...
by tommeyers
Tue Oct 09, 2018 6:33 pm
Forum: Hardware
Topic: ESP32 with a tons of switch
Replies: 16
Views: 2371

Re: ESP32 with a tons of switch

Holy shit! 74HC138 is for 3 input and 8 outputs. not 8 to 3; 3 to 8!

datasheet: http://www.futurlec.com/74HC/74HC138.shtml

How about a 74HC148 instead?

datasheet: http://www.futurlec.com/74HC/74HC148.shtml

Sorry, I didn't check the datasheet.

Tom Meyers
by tommeyers
Tue Oct 09, 2018 4:27 pm
Forum: Hardware
Topic: ESP32 with a tons of switch
Replies: 16
Views: 2371

Re: ESP32 with a tons of switch

First, put pull-ups on the buttons. That will assure that the value will be either Low or High for Up or Down. Second, observe bounce with a simple program that reads the inputs loop: (read, display 'U' or 'D') what you should see is:UUUUUUU DUDUDU DDDDDDDDDDDDDDDDDDD. In the transition from U to D ...
by tommeyers
Sun Oct 07, 2018 2:24 pm
Forum: Hardware
Topic: ESP32 with a tons of switch
Replies: 16
Views: 2371

Re: ESP32 with a tons of switch

My second thought is pull-ups. Do the mux inputs need a pull-up? pin<-->resistor<-->+ and pin<--> switch <--> gnd So, maybe 2 issues no-debounce and no-pull-ups. That will give you strange output on mux. In addition, your code is too complicated; clear, get bit (de-bounced), or, shift, get bit (de-b...
by tommeyers
Sun Oct 07, 2018 1:17 pm
Forum: Hardware
Topic: ESP32 with a tons of switch
Replies: 16
Views: 2371

Re: ESP32 with a tons of switch

My first thought is key bounce.

Can you post a schematic?

Tom Meyers

Go to advanced search